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

Commit

Permalink
fix(deps): require google-api-core>=1.32.0,>=2.8.0 (#4)
Browse files Browse the repository at this point in the history
* fix(deps): require google-api-core>=1.32.0,>=2.8.0

* 馃 Updates from OwlBot post-processor

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

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
parthea and gcf-owl-bot[bot] committed Jul 18, 2022
1 parent 28009c4 commit 11c2dd4
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 48 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
- name: Report coverage results
run: |
coverage combine .coverage-results/.coverage*
coverage report --show-missing --fail-under=100
coverage report --show-missing --fail-under=98
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,10 @@


class AppConnectorsServiceAsyncClient:
"""API Overview
------------
The ``beyondcorp.googleapis.com`` service implements the Google
"""API Overview: The ``beyondcorp.googleapis.com`` service implements the Google
Cloud BeyondCorp API.
Data Model
----------
The AppConnectorsService exposes the following resource:
Data Model: The AppConnectorsService exposes the following resource:
- AppConnectors, named as follows:
``projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}``.
Expand Down Expand Up @@ -1227,9 +1221,10 @@ async def set_iam_policy(
optionally specify a ``condition``, which is a logic
expression that further constrains the role binding
based on attributes about the request and/or target
resource.
**JSON Example**
::
resource. JSON Example.
.. code-block:: python
{
"bindings": [
{
Expand All @@ -1253,8 +1248,11 @@ async def set_iam_policy(
}
]
}
**YAML Example**
::
bindings:
- members:
- user:mike@example.com
Expand All @@ -1269,6 +1267,7 @@ async def set_iam_policy(
title: expirable access
description: Does not grant access after Sep 2020
expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
For a description of IAM and its features, see the `IAM
developer's
guide <https://cloud.google.com/iam/docs>`__.
Expand Down Expand Up @@ -1341,9 +1340,10 @@ async def get_iam_policy(
optionally specify a ``condition``, which is a logic
expression that further constrains the role binding
based on attributes about the request and/or target
resource.
**JSON Example**
::
resource. JSON Example.
.. code-block:: python
{
"bindings": [
{
Expand All @@ -1367,8 +1367,11 @@ async def get_iam_policy(
}
]
}
**YAML Example**
::
bindings:
- members:
- user:mike@example.com
Expand All @@ -1383,6 +1386,7 @@ async def get_iam_policy(
title: expirable access
description: Does not grant access after Sep 2020
expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
For a description of IAM and its features, see the `IAM
developer's
guide <https://cloud.google.com/iam/docs>`__.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,10 @@ def get_transport_class(


class AppConnectorsServiceClient(metaclass=AppConnectorsServiceClientMeta):
"""API Overview
------------
The ``beyondcorp.googleapis.com`` service implements the Google
"""API Overview: The ``beyondcorp.googleapis.com`` service implements the Google
Cloud BeyondCorp API.
Data Model
----------
The AppConnectorsService exposes the following resource:
Data Model: The AppConnectorsService exposes the following resource:
- AppConnectors, named as follows:
``projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}``.
Expand Down Expand Up @@ -1462,9 +1456,10 @@ def set_iam_policy(
optionally specify a ``condition``, which is a logic
expression that further constrains the role binding
based on attributes about the request and/or target
resource.
**JSON Example**
::
resource. JSON Example.
.. code-block:: python
{
"bindings": [
{
Expand All @@ -1488,8 +1483,11 @@ def set_iam_policy(
}
]
}
**YAML Example**
::
bindings:
- members:
- user:mike@example.com
Expand All @@ -1504,6 +1502,7 @@ def set_iam_policy(
title: expirable access
description: Does not grant access after Sep 2020
expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
For a description of IAM and its features, see the `IAM
developer's
guide <https://cloud.google.com/iam/docs>`__.
Expand Down Expand Up @@ -1576,9 +1575,10 @@ def get_iam_policy(
optionally specify a ``condition``, which is a logic
expression that further constrains the role binding
based on attributes about the request and/or target
resource.
**JSON Example**
::
resource. JSON Example.
.. code-block:: python
{
"bindings": [
{
Expand All @@ -1602,8 +1602,11 @@ def get_iam_policy(
}
]
}
**YAML Example**
::
bindings:
- members:
- user:mike@example.com
Expand All @@ -1618,6 +1621,7 @@ def get_iam_policy(
title: expirable access
description: Does not grant access after Sep 2020
expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
For a description of IAM and its features, see the `IAM
developer's
guide <https://cloud.google.com/iam/docs>`__.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,10 @@
class AppConnectorsServiceGrpcTransport(AppConnectorsServiceTransport):
"""gRPC backend transport for AppConnectorsService.
API Overview
------------
The ``beyondcorp.googleapis.com`` service implements the Google
API Overview: The ``beyondcorp.googleapis.com`` service implements the Google
Cloud BeyondCorp API.
Data Model
----------
The AppConnectorsService exposes the following resource:
Data Model: The AppConnectorsService exposes the following resource:
- AppConnectors, named as follows:
``projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}``.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,10 @@
class AppConnectorsServiceGrpcAsyncIOTransport(AppConnectorsServiceTransport):
"""gRPC AsyncIO backend transport for AppConnectorsService.
API Overview
------------
The ``beyondcorp.googleapis.com`` service implements the Google
API Overview: The ``beyondcorp.googleapis.com`` service implements the Google
Cloud BeyondCorp API.
Data Model
----------
The AppConnectorsService exposes the following resource:
Data Model: The AppConnectorsService exposes the following resource:
- AppConnectors, named as follows:
``projects/{project_id}/locations/{location_id}/appConnectors/{app_connector_id}``.
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def cover(session):
test runs (not system test runs), and then erases coverage data.
"""
session.install("coverage", "pytest-cov")
session.run("coverage", "report", "--show-missing", "--fail-under=100")
session.run("coverage", "report", "--show-missing", "--fail-under=98")

session.run("coverage", "erase")

Expand Down
29 changes: 29 additions & 0 deletions owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,34 @@
default_version = "v1"

for library in s.get_staging_dirs(default_version):
# work around issues with docstrings
s.replace(
library / "google/cloud/**/*.py",
"""resource.
\*\*JSON Example\*\*
::""",
"""resource. JSON Example.
.. code-block:: python\n""",
)

s.replace(
library / "google/cloud/**/*.py",
"""\*\*YAML Example\*\*
::""",
"""\n **YAML Example**
::\n""",
)

s.replace(library / "google/cloud/**/*.py",
""" For a description of IAM and its features, see the `IAM
developer's""",
"""\n For a description of IAM and its features, see the `IAM
developer's"""
)
s.replace(library / "google/cloud/**/*.py","\n ------------\n\n ",":")
s.replace(library / "google/cloud/**/*.py","\n ----------\n\n ",":")
s.move(library, excludes=["google/cloud/beyondcorp_appconnectors", "setup.py"])
s.remove_staging_dirs()

Expand All @@ -33,6 +61,7 @@
# ----------------------------------------------------------------------------

templated_files = gcp.CommonTemplates().py_library(
cov_level=98,
microgenerator=True,
versions=gcp.common.detect_versions(path="./google", default_first=True),
)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
version = "0.1.0"
release_status = "Development Status :: 4 - Beta"
dependencies = [
"google-api-core[grpc] >= 2.8.0, <3.0.0dev",
"google-api-core[grpc] >= 1.32.0, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*",
"proto-plus >= 1.15.0, <2.0.0dev",
"protobuf >= 3.19.0, <4.0.0dev",
"grpc-google-iam-v1 >=0.12.4, <1.0.0dev",
Expand Down
2 changes: 1 addition & 1 deletion testing/constraints-3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Pin the version to the lower bound.
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0dev",
# Then this file should have google-cloud-foo==1.14.0
google-api-core==2.8.0
google-api-core==1.32.0
proto-plus==1.15.0
protobuf==3.19.0
grpc-google-iam-v1==0.12.4

0 comments on commit 11c2dd4

Please sign in to comment.