Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
fix(deps): Require google-api-core >=1.34.0, >=2.11.0 (#498)
Browse files Browse the repository at this point in the history
* 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

* 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

* remove v1p1beta1 docs

* set coverage to 99

* remove commented code

* fix(deps): Require google-api-core >=1.34.0, >=2.11.0

fix: Drop usage of pkg_resources

fix: Fix timeout default values

docs(samples): Snippetgen should call await on the operation coroutine before calling result

PiperOrigin-RevId: 493260409

Source-Link: googleapis/googleapis@fea4387

Source-Link: https://github.com/googleapis/googleapis-gen/commit/387b7344c7529ee44be84e613b19a820508c612b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzg3YjczNDRjNzUyOWVlNDRiZTg0ZTYxM2IxOWE4MjA1MDhjNjEyYiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* add gapic_version.py

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people authored Dec 15, 2022
1 parent 244f9e7 commit 0e5a37b
Show file tree
Hide file tree
Showing 126 changed files with 4,099 additions and 2,574 deletions.
26 changes: 2 additions & 24 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,34 +1,12 @@
# -*- 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

[report]
fail_under = 100
show_missing = True
omit = google/cloud/vision/__init__.py
omit =
google/cloud/vision/__init__.py
exclude_lines =
# Re-enable the standard pragma
pragma: NO COVER
# Ignore debug-only repr
def __repr__
# Ignore pkg_resources exceptions.
# This is added at the module level as a safeguard for if someone
# generates the code and tries to run it without pip installing. This
# makes it virtually impossible to test properly.
except pkg_resources.DistributionNotFound
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
releaseType: python
handleGHRelease: true
manifest: true
# NOTE: this section is generated by synthtool.languages.python
# See https://github.com/googleapis/synthtool/blob/master/synthtool/languages/python.py
branches:
Expand Down
4 changes: 4 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
".": "3.1.4"
}

1 change: 0 additions & 1 deletion docs/vision_v1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Vision v1 API

.. automodule:: google.cloud.vision_v1.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/vision_v1p2beta1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Vision v1p2beta1 API

.. automodule:: google.cloud.vision_v1p2beta1.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/vision_v1p3beta1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Vision v1p3beta1 API

.. automodule:: google.cloud.vision_v1p3beta1.types
:members:
:undoc-members:
:show-inheritance:
1 change: 0 additions & 1 deletion docs/vision_v1p4beta1/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Vision v1p4beta1 API

.. automodule:: google.cloud.vision_v1p4beta1.types
:members:
:undoc-members:
:show-inheritance:
5 changes: 5 additions & 0 deletions google/cloud/vision/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@
# limitations under the License.
#

from google.cloud.vision import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.vision_v1.services.image_annotator.async_client import (
ImageAnnotatorAsyncClient,
)
Expand Down
16 changes: 16 additions & 0 deletions google/cloud/vision/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
__version__ = "3.1.4" # {x-release-please-version}
4 changes: 4 additions & 0 deletions google/cloud/vision_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
from google.cloud.vision import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.vision_helpers.decorators import add_single_feature_methods
from google.cloud.vision_helpers import VisionHelpers
Expand Down
267 changes: 267 additions & 0 deletions google/cloud/vision_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.vision_v1",
"protoPackage": "google.cloud.vision.v1",
"schema": "1.0",
"services": {
"ImageAnnotator": {
"clients": {
"grpc": {
"libraryClient": "ImageAnnotatorClient",
"rpcs": {
"AsyncBatchAnnotateFiles": {
"methods": [
"async_batch_annotate_files"
]
},
"AsyncBatchAnnotateImages": {
"methods": [
"async_batch_annotate_images"
]
},
"BatchAnnotateFiles": {
"methods": [
"batch_annotate_files"
]
},
"BatchAnnotateImages": {
"methods": [
"batch_annotate_images"
]
}
}
},
"grpc-async": {
"libraryClient": "ImageAnnotatorAsyncClient",
"rpcs": {
"AsyncBatchAnnotateFiles": {
"methods": [
"async_batch_annotate_files"
]
},
"AsyncBatchAnnotateImages": {
"methods": [
"async_batch_annotate_images"
]
},
"BatchAnnotateFiles": {
"methods": [
"batch_annotate_files"
]
},
"BatchAnnotateImages": {
"methods": [
"batch_annotate_images"
]
}
}
}
}
},
"ProductSearch": {
"clients": {
"grpc": {
"libraryClient": "ProductSearchClient",
"rpcs": {
"AddProductToProductSet": {
"methods": [
"add_product_to_product_set"
]
},
"CreateProduct": {
"methods": [
"create_product"
]
},
"CreateProductSet": {
"methods": [
"create_product_set"
]
},
"CreateReferenceImage": {
"methods": [
"create_reference_image"
]
},
"DeleteProduct": {
"methods": [
"delete_product"
]
},
"DeleteProductSet": {
"methods": [
"delete_product_set"
]
},
"DeleteReferenceImage": {
"methods": [
"delete_reference_image"
]
},
"GetProduct": {
"methods": [
"get_product"
]
},
"GetProductSet": {
"methods": [
"get_product_set"
]
},
"GetReferenceImage": {
"methods": [
"get_reference_image"
]
},
"ImportProductSets": {
"methods": [
"import_product_sets"
]
},
"ListProductSets": {
"methods": [
"list_product_sets"
]
},
"ListProducts": {
"methods": [
"list_products"
]
},
"ListProductsInProductSet": {
"methods": [
"list_products_in_product_set"
]
},
"ListReferenceImages": {
"methods": [
"list_reference_images"
]
},
"PurgeProducts": {
"methods": [
"purge_products"
]
},
"RemoveProductFromProductSet": {
"methods": [
"remove_product_from_product_set"
]
},
"UpdateProduct": {
"methods": [
"update_product"
]
},
"UpdateProductSet": {
"methods": [
"update_product_set"
]
}
}
},
"grpc-async": {
"libraryClient": "ProductSearchAsyncClient",
"rpcs": {
"AddProductToProductSet": {
"methods": [
"add_product_to_product_set"
]
},
"CreateProduct": {
"methods": [
"create_product"
]
},
"CreateProductSet": {
"methods": [
"create_product_set"
]
},
"CreateReferenceImage": {
"methods": [
"create_reference_image"
]
},
"DeleteProduct": {
"methods": [
"delete_product"
]
},
"DeleteProductSet": {
"methods": [
"delete_product_set"
]
},
"DeleteReferenceImage": {
"methods": [
"delete_reference_image"
]
},
"GetProduct": {
"methods": [
"get_product"
]
},
"GetProductSet": {
"methods": [
"get_product_set"
]
},
"GetReferenceImage": {
"methods": [
"get_reference_image"
]
},
"ImportProductSets": {
"methods": [
"import_product_sets"
]
},
"ListProductSets": {
"methods": [
"list_product_sets"
]
},
"ListProducts": {
"methods": [
"list_products"
]
},
"ListProductsInProductSet": {
"methods": [
"list_products_in_product_set"
]
},
"ListReferenceImages": {
"methods": [
"list_reference_images"
]
},
"PurgeProducts": {
"methods": [
"purge_products"
]
},
"RemoveProductFromProductSet": {
"methods": [
"remove_product_from_product_set"
]
},
"UpdateProduct": {
"methods": [
"update_product"
]
},
"UpdateProductSet": {
"methods": [
"update_product_set"
]
}
}
}
}
}
}
}
16 changes: 16 additions & 0 deletions google/cloud/vision_v1/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- coding: utf-8 -*-
# Copyright 2022 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.
#
__version__ = "3.1.4" # {x-release-please-version}
Loading

0 comments on commit 0e5a37b

Please sign in to comment.