Skip to content

Commit

Permalink
chore: Use gapic-generator-python 0.65.0 (#263)
Browse files Browse the repository at this point in the history
* chore: Use gapic-generator-python 0.65.0

PiperOrigin-RevId: 440970084

Source-Link: googleapis/googleapis@5e0a3d5

Source-Link: googleapis/googleapis-gen@b0c628a
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9

* 🦉 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
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Apr 12, 2022
1 parent 1c74857 commit f567a7e
Show file tree
Hide file tree
Showing 6 changed files with 103 additions and 83 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import functools
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core.client_options import ClientOptions
Expand Down Expand Up @@ -244,7 +244,6 @@ async def create_build(
the build ID. Pass the build ID to ``GetBuild`` to determine the
build status (such as ``SUCCESS`` or ``FAILURE``).
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -380,7 +379,6 @@ async def get_build(
``SUCCESS``, ``FAILURE``, or ``WORKING``), and timing
information.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -475,8 +473,7 @@ def sample_get_build():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -509,7 +506,6 @@ async def list_builds(
Previously requested builds may still be in-progress, or
may have finished successfully or unsuccessfully.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -587,8 +583,7 @@ def sample_list_builds():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -773,7 +768,6 @@ async def retry_build(
available depending on the bucket's lifecycle management
settings.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -912,7 +906,6 @@ async def approve_build(
If rejected, the returned LRO will be immediately done.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1055,7 +1048,6 @@ async def create_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1160,7 +1152,6 @@ async def get_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1240,8 +1231,7 @@ def sample_get_build_trigger():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -1273,7 +1263,6 @@ async def list_build_triggers(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1345,8 +1334,7 @@ def sample_list_build_triggers():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -1388,7 +1376,6 @@ async def delete_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1455,8 +1442,7 @@ def sample_delete_build_trigger():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -1487,7 +1473,6 @@ async def update_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1738,7 +1723,6 @@ async def receive_trigger_webhook(
r"""ReceiveTriggerWebhook [Experimental] is called when the API
receives a webhook request targeted at a specific trigger.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -2037,8 +2021,7 @@ def sample_get_worker_pool():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -2402,8 +2385,7 @@ def sample_list_worker_pools():
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from collections import OrderedDict
import os
import re
from typing import Dict, Optional, Sequence, Tuple, Type, Union
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
import pkg_resources

from google.api_core import client_options as client_options_lib
Expand Down Expand Up @@ -611,7 +611,6 @@ def create_build(
the build ID. Pass the build ID to ``GetBuild`` to determine the
build status (such as ``SUCCESS`` or ``FAILURE``).
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -747,7 +746,6 @@ def get_build(
``SUCCESS``, ``FAILURE``, or ``WORKING``), and timing
information.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -866,7 +864,6 @@ def list_builds(
Previously requested builds may still be in-progress, or
may have finished successfully or unsuccessfully.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1120,7 +1117,6 @@ def retry_build(
available depending on the bucket's lifecycle management
settings.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1259,7 +1255,6 @@ def approve_build(
If rejected, the returned LRO will be immediately done.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1402,7 +1397,6 @@ def create_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1507,7 +1501,6 @@ def get_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1610,7 +1603,6 @@ def list_build_triggers(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1715,7 +1707,6 @@ def delete_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -1804,7 +1795,6 @@ def update_build_trigger(
This API is experimental.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down Expand Up @@ -2055,7 +2045,6 @@ def receive_trigger_webhook(
r"""ReceiveTriggerWebhook [Experimental] is called when the API
receives a webhook request targeted at a specific trigger.
.. code-block:: python
from google.cloud.devtools import cloudbuild_v1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def __init__(
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
be used for service account credentials.
"""

# Save the hostname. Default to port 443 (HTTPS) if none is specified.
if ":" not in host:
host += ":443"
Expand Down Expand Up @@ -135,8 +136,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand All @@ -150,8 +150,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -185,8 +184,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand All @@ -200,8 +198,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand All @@ -215,8 +212,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -250,8 +246,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand All @@ -275,8 +270,7 @@ def _prep_wrapped_messages(self, client_info):
maximum=60.0,
multiplier=1.3,
predicate=retries.if_exception_type(
core_exceptions.DeadlineExceeded,
core_exceptions.ServiceUnavailable,
core_exceptions.GoogleAPICallError,
),
deadline=600.0,
),
Expand Down Expand Up @@ -470,5 +464,9 @@ def list_worker_pools(
]:
raise NotImplementedError()

@property
def kind(self) -> str:
raise NotImplementedError()


__all__ = ("CloudBuildTransport",)
Original file line number Diff line number Diff line change
Expand Up @@ -782,5 +782,9 @@ def list_worker_pools(
def close(self):
self.grpc_channel.close()

@property
def kind(self) -> str:
return "grpc"


__all__ = ("CloudBuildGrpcTransport",)
Loading

0 comments on commit f567a7e

Please sign in to comment.