Skip to content

Commit

Permalink
chore: use latest post processor image (#3)
Browse files Browse the repository at this point in the history
* chore: use latest post processor image

* 🦉 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] authored Apr 3, 2022
1 parent 7a590cb commit f8cea81
Show file tree
Hide file tree
Showing 23 changed files with 1,916 additions and 532 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-run/.flake8
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Generated by synthtool. DO NOT EDIT!
[flake8]
ignore = E203, E266, E501, W503
ignore = E203, E231, E266, E501, W503
exclude =
# Exclude generated code.
**/proto/**
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-run/.github/.OwlBot.lock.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@

docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
digest: sha256:f848855a87932612125b7b7be24ae0a58c41ce32cba8239e0748edd50a64f71e
digest: sha256:9ce2de2e0a59b6ae3b1eb216f441ee0dea59b1cfc08109d03613916d09d25a35
2 changes: 2 additions & 0 deletions packages/google-cloud-run/.github/auto-label.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
requestsize:
enabled: true
2 changes: 1 addition & 1 deletion packages/google-cloud-run/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ repos:
- id: end-of-file-fixer
- id: check-yaml
- repo: https://github.com/psf/black
rev: 19.10b0
rev: 22.3.0
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
Expand Down
13 changes: 11 additions & 2 deletions packages/google-cloud-run/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,13 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(root_doc, "google-cloud-run", "google-cloud-run Documentation", [author], 1,)
(
root_doc,
"google-cloud-run",
"google-cloud-run Documentation",
[author],
1,
)
]

# If true, show URL addresses after external links.
Expand Down Expand Up @@ -355,7 +361,10 @@
intersphinx_mapping = {
"python": ("https://python.readthedocs.org/en/latest/", None),
"google-auth": ("https://googleapis.dev/python/google-auth/latest/", None),
"google.api_core": ("https://googleapis.dev/python/google-api-core/latest/", None,),
"google.api_core": (
"https://googleapis.dev/python/google-api-core/latest/",
None,
),
"grpc": ("https://grpc.github.io/grpc/python/", None),
"proto-plus": ("https://proto-plus-python.readthedocs.io/en/latest/", None),
"protobuf": ("https://googleapis.dev/python/protobuf/latest/", None),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,12 @@ def sample_get_revision():
)

# Send the request.
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
response = await rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Done; return the response.
return response
Expand Down Expand Up @@ -402,12 +407,20 @@ def sample_list_revisions():
)

# Send the request.
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
response = await rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# This method is paged; wrap the response in a pager, which provides
# an `__aiter__` convenience method.
response = pagers.ListRevisionsAsyncPager(
method=rpc, request=request, response=response, metadata=metadata,
method=rpc,
request=request,
response=response,
metadata=metadata,
)

# Done; return the response.
Expand Down Expand Up @@ -508,7 +521,12 @@ def sample_delete_revision():
)

# Send the request.
response = await rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
response = await rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Wrap the response in an operation future.
response = operation_async.from_gapic(
Expand All @@ -530,7 +548,9 @@ async def __aexit__(self, exc_type, exc, tb):

try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=pkg_resources.get_distribution("google-cloud-run",).version,
gapic_version=pkg_resources.get_distribution(
"google-cloud-run",
).version,
)
except pkg_resources.DistributionNotFound:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ class RevisionsClientMeta(type):
_transport_registry["grpc"] = RevisionsGrpcTransport
_transport_registry["grpc_asyncio"] = RevisionsGrpcAsyncIOTransport

def get_transport_class(cls, label: str = None,) -> Type[RevisionsTransport]:
def get_transport_class(
cls,
label: str = None,
) -> Type[RevisionsTransport]:
"""Returns an appropriate transport class.
Args:
Expand Down Expand Up @@ -166,10 +169,16 @@ def transport(self) -> RevisionsTransport:
return self._transport

@staticmethod
def connector_path(project: str, location: str, connector: str,) -> str:
def connector_path(
project: str,
location: str,
connector: str,
) -> str:
"""Returns a fully-qualified connector string."""
return "projects/{project}/locations/{location}/connectors/{connector}".format(
project=project, location=location, connector=connector,
project=project,
location=location,
connector=connector,
)

@staticmethod
Expand All @@ -183,7 +192,10 @@ def parse_connector_path(path: str) -> Dict[str, str]:

@staticmethod
def crypto_key_path(
project: str, location: str, key_ring: str, crypto_key: str,
project: str,
location: str,
key_ring: str,
crypto_key: str,
) -> str:
"""Returns a fully-qualified crypto_key string."""
return "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}".format(
Expand All @@ -203,10 +215,18 @@ def parse_crypto_key_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def revision_path(project: str, location: str, service: str, revision: str,) -> str:
def revision_path(
project: str,
location: str,
service: str,
revision: str,
) -> str:
"""Returns a fully-qualified revision string."""
return "projects/{project}/locations/{location}/services/{service}/revisions/{revision}".format(
project=project, location=location, service=service, revision=revision,
project=project,
location=location,
service=service,
revision=revision,
)

@staticmethod
Expand All @@ -219,10 +239,14 @@ def parse_revision_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def secret_path(project: str, secret: str,) -> str:
def secret_path(
project: str,
secret: str,
) -> str:
"""Returns a fully-qualified secret string."""
return "projects/{project}/secrets/{secret}".format(
project=project, secret=secret,
project=project,
secret=secret,
)

@staticmethod
Expand All @@ -232,10 +256,16 @@ def parse_secret_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def secret_version_path(project: str, secret: str, version: str,) -> str:
def secret_version_path(
project: str,
secret: str,
version: str,
) -> str:
"""Returns a fully-qualified secret_version string."""
return "projects/{project}/secrets/{secret}/versions/{version}".format(
project=project, secret=secret, version=version,
project=project,
secret=secret,
version=version,
)

@staticmethod
Expand All @@ -248,10 +278,16 @@ def parse_secret_version_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def service_path(project: str, location: str, service: str,) -> str:
def service_path(
project: str,
location: str,
service: str,
) -> str:
"""Returns a fully-qualified service string."""
return "projects/{project}/locations/{location}/services/{service}".format(
project=project, location=location, service=service,
project=project,
location=location,
service=service,
)

@staticmethod
Expand All @@ -264,7 +300,9 @@ def parse_service_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def common_billing_account_path(billing_account: str,) -> str:
def common_billing_account_path(
billing_account: str,
) -> str:
"""Returns a fully-qualified billing_account string."""
return "billingAccounts/{billing_account}".format(
billing_account=billing_account,
Expand All @@ -277,9 +315,13 @@ def parse_common_billing_account_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def common_folder_path(folder: str,) -> str:
def common_folder_path(
folder: str,
) -> str:
"""Returns a fully-qualified folder string."""
return "folders/{folder}".format(folder=folder,)
return "folders/{folder}".format(
folder=folder,
)

@staticmethod
def parse_common_folder_path(path: str) -> Dict[str, str]:
Expand All @@ -288,9 +330,13 @@ def parse_common_folder_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def common_organization_path(organization: str,) -> str:
def common_organization_path(
organization: str,
) -> str:
"""Returns a fully-qualified organization string."""
return "organizations/{organization}".format(organization=organization,)
return "organizations/{organization}".format(
organization=organization,
)

@staticmethod
def parse_common_organization_path(path: str) -> Dict[str, str]:
Expand All @@ -299,9 +345,13 @@ def parse_common_organization_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def common_project_path(project: str,) -> str:
def common_project_path(
project: str,
) -> str:
"""Returns a fully-qualified project string."""
return "projects/{project}".format(project=project,)
return "projects/{project}".format(
project=project,
)

@staticmethod
def parse_common_project_path(path: str) -> Dict[str, str]:
Expand All @@ -310,10 +360,14 @@ def parse_common_project_path(path: str) -> Dict[str, str]:
return m.groupdict() if m else {}

@staticmethod
def common_location_path(project: str, location: str,) -> str:
def common_location_path(
project: str,
location: str,
) -> str:
"""Returns a fully-qualified location string."""
return "projects/{project}/locations/{location}".format(
project=project, location=location,
project=project,
location=location,
)

@staticmethod
Expand Down Expand Up @@ -576,7 +630,12 @@ def sample_get_revision():
)

# Send the request.
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
response = rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Done; return the response.
return response
Expand Down Expand Up @@ -675,12 +734,20 @@ def sample_list_revisions():
)

# Send the request.
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
response = rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# This method is paged; wrap the response in a pager, which provides
# an `__iter__` convenience method.
response = pagers.ListRevisionsPager(
method=rpc, request=request, response=response, metadata=metadata,
method=rpc,
request=request,
response=response,
metadata=metadata,
)

# Done; return the response.
Expand Down Expand Up @@ -781,7 +848,12 @@ def sample_delete_revision():
)

# Send the request.
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
response = rpc(
request,
retry=retry,
timeout=timeout,
metadata=metadata,
)

# Wrap the response in an operation future.
response = operation.from_gapic(
Expand Down Expand Up @@ -810,7 +882,9 @@ def __exit__(self, type, value, traceback):

try:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
gapic_version=pkg_resources.get_distribution("google-cloud-run",).version,
gapic_version=pkg_resources.get_distribution(
"google-cloud-run",
).version,
)
except pkg_resources.DistributionNotFound:
DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo()
Expand Down
Loading

0 comments on commit f8cea81

Please sign in to comment.