Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update gapic-generator-python to v1.12.0 #891

Merged
merged 4 commits into from
Nov 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@
from google.api_core.client_options import ClientOptions
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.api_core import retry as retries
from google.api_core import retry_async as retries
from google.auth import credentials as ga_credentials # type: ignore
from google.oauth2 import service_account # type: ignore

try:
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
except AttributeError: # pragma: NO COVER
OptionalRetry = Union[retries.Retry, object] # type: ignore
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore

from google.api_core import operation # type: ignore
from google.api_core import operation_async # type: ignore
Expand Down Expand Up @@ -305,7 +305,7 @@ async def create_instance(
This corresponds to the ``clusters`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -404,7 +404,7 @@ async def get_instance(
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -440,7 +440,7 @@ async def get_instance(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.get_instance,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -496,7 +496,7 @@ async def list_instances(
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -529,7 +529,7 @@ async def list_instances(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.list_instances,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -581,7 +581,7 @@ async def update_instance(
served from all
[Clusters][google.bigtable.admin.v2.Cluster] in the
instance.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand All @@ -603,7 +603,7 @@ async def update_instance(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.update_instance,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -669,7 +669,7 @@ async def partial_update_instance(
This corresponds to the ``update_mask`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -709,7 +709,7 @@ async def partial_update_instance(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.partial_update_instance,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -775,7 +775,7 @@ async def delete_instance(
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -869,7 +869,7 @@ async def create_cluster(
This corresponds to the ``cluster`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -964,7 +964,7 @@ async def get_cluster(
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -999,7 +999,7 @@ async def get_cluster(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.get_cluster,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -1057,7 +1057,7 @@ async def list_clusters(
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1090,7 +1090,7 @@ async def list_clusters(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.list_clusters,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -1141,7 +1141,7 @@ async def update_cluster(
location, capable of serving all
[Tables][google.bigtable.admin.v2.Table] in the parent
[Instance][google.bigtable.admin.v2.Instance].
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand All @@ -1164,7 +1164,7 @@ async def update_cluster(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.update_cluster,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -1248,7 +1248,7 @@ async def partial_update_cluster(
This corresponds to the ``update_mask`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1343,7 +1343,7 @@ async def delete_cluster(
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1431,7 +1431,7 @@ async def create_app_profile(
This corresponds to the ``app_profile`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1515,7 +1515,7 @@ async def get_app_profile(
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1549,7 +1549,7 @@ async def get_app_profile(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.get_app_profile,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -1608,7 +1608,7 @@ async def list_app_profiles(
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1644,7 +1644,7 @@ async def list_app_profiles(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.list_app_profiles,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -1717,7 +1717,7 @@ async def update_app_profile(
This corresponds to the ``update_mask`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1754,7 +1754,7 @@ async def update_app_profile(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.update_app_profile,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -1820,7 +1820,7 @@ async def delete_app_profile(
This corresponds to the ``name`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1890,7 +1890,7 @@ async def get_iam_policy(
This corresponds to the ``resource`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -1953,7 +1953,7 @@ async def get_iam_policy(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.get_iam_policy,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -2008,7 +2008,7 @@ async def set_iam_policy(
This corresponds to the ``resource`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -2126,7 +2126,7 @@ async def test_iam_permissions(
This corresponds to the ``permissions`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -2160,7 +2160,7 @@ async def test_iam_permissions(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.test_iam_permissions,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down Expand Up @@ -2217,7 +2217,7 @@ async def list_hot_tablets(
This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
should not be set.
retry (google.api_core.retry.Retry): Designation of what errors, if any,
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
should be retried.
timeout (float): The timeout for this request.
metadata (Sequence[Tuple[str, str]]): Strings which should be
Expand Down Expand Up @@ -2253,7 +2253,7 @@ async def list_hot_tablets(
# and friendly error handling.
rpc = gapic_v1.method_async.wrap_method(
self._client._transport.list_hot_tablets,
default_retry=retries.Retry(
default_retry=retries.AsyncRetry(
initial=1.0,
maximum=60.0,
multiplier=2,
Expand Down
Loading
Loading