Skip to content

Commit fb6f9db

Browse files
feat: [Many APIs] Add support for Python 3.12 (#12073)
- [ ] Regenerate this pull request now. docs: updated doc for speech mode PiperOrigin-RevId: 586469693 Source-Link: googleapis/googleapis@e8148d6 Source-Link: googleapis/googleapis-gen@85136bd Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpc2NvdmVyeWVuZ2luZS8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRtcy8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvY3VtZW50YWkvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRvbWFpbnMvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2Vjb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVkZ2VuZXR3b3JrLy5Pd2xCb3QueWFtbCIsImgiOiI4NTEzNmJkMDQzODNlZDcxNzJiYjE4YjdiOGQyMjBkZDdmZjZiM2EwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVudGVycHJpc2Vrbm93bGVkZ2VncmFwaC8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWVzc2VudGlhbC1jb250YWN0cy8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLXB1Ymxpc2hpbmcvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWV2ZW50YXJjLy5Pd2xCb3QueWFtbCIsImgiOiI4NTEzNmJkMDQzODNlZDcxNzJiYjE4YjdiOGQyMjBkZDdmZjZiM2EwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZpbGVzdG9yZS8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWZ1bmN0aW9ucy8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZS1iYWNrdXAvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZS1jb25uZWN0LWdhdGV3YXkvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZS1odWIvLk93bEJvdC55YW1sIiwiaCI6Ijg1MTM2YmQwNDM4M2VkNzE3MmJiMThiN2I4ZDIyMGRkN2ZmNmIzYTAifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZS1tdWx0aWNsb3VkLy5Pd2xCb3QueWFtbCIsImgiOiI4NTEzNmJkMDQzODNlZDcxNzJiYjE4YjdiOGQyMjBkZDdmZjZiM2EwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlhbS1sb2dnaW5nLy5Pd2xCb3QueWFtbCIsImgiOiI4NTEzNmJkMDQzODNlZDcxNzJiYjE4YjdiOGQyMjBkZDdmZjZiM2EwIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlhbS8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlhcC8uT3dsQm90LnlhbWwiLCJoIjoiODUxMzZiZDA0MzgzZWQ3MTcyYmIxOGI3YjhkMjIwZGQ3ZmY2YjNhMCJ9 BEGIN_COMMIT_OVERRIDE feat: Add support for python 3.12 feat: Introduce compatibility with native namespace packages fix: Use `retry_async` instead of `retry` in async client fix: Require proto-plus >= 1.22.3 END_COMMIT_OVERRIDE --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent f46b37f commit fb6f9db

File tree

256 files changed

+2283
-2196
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

256 files changed

+2283
-2196
lines changed

packages/google-cloud-dialogflow/CONTRIBUTING.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- The feature must work fully on the following CPython versions:
25-
3.7, 3.8, 3.9, 3.10 and 3.11 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7272

7373
- To run a single unit test::
7474

75-
$ nox -s unit-3.11 -- -k <name of test>
75+
$ nox -s unit-3.12 -- -k <name of test>
7676

7777

7878
.. note::
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system-3.11 -- -k <name of test>
146+
$ nox -s system-3.12 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python 3.8, 3.9, 3.10 and 3.11.
151+
System tests are only configured to run under Python 3.8, 3.9, 3.10, 3.11 and 3.12.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local
@@ -226,12 +226,14 @@ We support:
226226
- `Python 3.9`_
227227
- `Python 3.10`_
228228
- `Python 3.11`_
229+
- `Python 3.12`_
229230

230231
.. _Python 3.7: https://docs.python.org/3.7/
231232
.. _Python 3.8: https://docs.python.org/3.8/
232233
.. _Python 3.9: https://docs.python.org/3.9/
233234
.. _Python 3.10: https://docs.python.org/3.10/
234235
.. _Python 3.11: https://docs.python.org/3.11/
236+
.. _Python 3.12: https://docs.python.org/3.12/
235237

236238

237239
Supported versions can be found in our ``noxfile.py`` `config`_.

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/agents/async_client.py

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030

3131
from google.api_core import exceptions as core_exceptions
3232
from google.api_core import gapic_v1
33-
from google.api_core import retry as retries
33+
from google.api_core import retry_async as retries
3434
from google.api_core.client_options import ClientOptions
3535
from google.auth import credentials as ga_credentials # type: ignore
3636
from google.oauth2 import service_account # type: ignore
3737

3838
from google.cloud.dialogflow_v2 import gapic_version as package_version
3939

4040
try:
41-
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
41+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
4242
except AttributeError: # pragma: NO COVER
43-
OptionalRetry = Union[retries.Retry, object] # type: ignore
43+
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
4444

4545
from google.api_core import operation # type: ignore
4646
from google.api_core import operation_async # type: ignore
@@ -261,7 +261,7 @@ async def sample_get_agent():
261261
This corresponds to the ``parent`` field
262262
on the ``request`` instance; if ``request`` is provided, this
263263
should not be set.
264-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
264+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
265265
should be retried.
266266
timeout (float): The timeout for this request.
267267
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -380,7 +380,7 @@ async def sample_set_agent():
380380
This corresponds to the ``agent`` field
381381
on the ``request`` instance; if ``request`` is provided, this
382382
should not be set.
383-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
383+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
384384
should be retried.
385385
timeout (float): The timeout for this request.
386386
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -490,7 +490,7 @@ async def sample_delete_agent():
490490
This corresponds to the ``parent`` field
491491
on the ``request`` instance; if ``request`` is provided, this
492492
should not be set.
493-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
493+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
494494
should be retried.
495495
timeout (float): The timeout for this request.
496496
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -590,7 +590,7 @@ async def sample_search_agents():
590590
This corresponds to the ``parent`` field
591591
on the ``request`` instance; if ``request`` is provided, this
592592
should not be set.
593-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
593+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
594594
should be retried.
595595
timeout (float): The timeout for this request.
596596
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -722,7 +722,7 @@ async def sample_train_agent():
722722
This corresponds to the ``parent`` field
723723
on the ``request`` instance; if ``request`` is provided, this
724724
should not be set.
725-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
725+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
726726
should be retried.
727727
timeout (float): The timeout for this request.
728728
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -857,7 +857,7 @@ async def sample_export_agent():
857857
This corresponds to the ``parent`` field
858858
on the ``request`` instance; if ``request`` is provided, this
859859
should not be set.
860-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
860+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
861861
should be retried.
862862
timeout (float): The timeout for this request.
863863
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -994,7 +994,7 @@ async def sample_import_agent():
994994
request (Optional[Union[google.cloud.dialogflow_v2.types.ImportAgentRequest, dict]]):
995995
The request object. The request message for
996996
[Agents.ImportAgent][google.cloud.dialogflow.v2.Agents.ImportAgent].
997-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
997+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
998998
should be retried.
999999
timeout (float): The timeout for this request.
10001000
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1123,7 +1123,7 @@ async def sample_restore_agent():
11231123
request (Optional[Union[google.cloud.dialogflow_v2.types.RestoreAgentRequest, dict]]):
11241124
The request object. The request message for
11251125
[Agents.RestoreAgent][google.cloud.dialogflow.v2.Agents.RestoreAgent].
1126-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
1126+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
11271127
should be retried.
11281128
timeout (float): The timeout for this request.
11291129
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1223,7 +1223,7 @@ async def sample_get_validation_result():
12231223
request (Optional[Union[google.cloud.dialogflow_v2.types.GetValidationResultRequest, dict]]):
12241224
The request object. The request message for
12251225
[Agents.GetValidationResult][google.cloud.dialogflow.v2.Agents.GetValidationResult].
1226-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
1226+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
12271227
should be retried.
12281228
timeout (float): The timeout for this request.
12291229
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1277,7 +1277,7 @@ async def list_operations(
12771277
request (:class:`~.operations_pb2.ListOperationsRequest`):
12781278
The request object. Request message for
12791279
`ListOperations` method.
1280-
retry (google.api_core.retry.Retry): Designation of what errors,
1280+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
12811281
if any, should be retried.
12821282
timeout (float): The timeout for this request.
12831283
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1294,7 +1294,7 @@ async def list_operations(
12941294

12951295
# Wrap the RPC method; this adds retry and timeout information,
12961296
# and friendly error handling.
1297-
rpc = gapic_v1.method.wrap_method(
1297+
rpc = gapic_v1.method_async.wrap_method(
12981298
self._client._transport.list_operations,
12991299
default_timeout=None,
13001300
client_info=DEFAULT_CLIENT_INFO,
@@ -1331,7 +1331,7 @@ async def get_operation(
13311331
request (:class:`~.operations_pb2.GetOperationRequest`):
13321332
The request object. Request message for
13331333
`GetOperation` method.
1334-
retry (google.api_core.retry.Retry): Designation of what errors,
1334+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
13351335
if any, should be retried.
13361336
timeout (float): The timeout for this request.
13371337
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1348,7 +1348,7 @@ async def get_operation(
13481348

13491349
# Wrap the RPC method; this adds retry and timeout information,
13501350
# and friendly error handling.
1351-
rpc = gapic_v1.method.wrap_method(
1351+
rpc = gapic_v1.method_async.wrap_method(
13521352
self._client._transport.get_operation,
13531353
default_timeout=None,
13541354
client_info=DEFAULT_CLIENT_INFO,
@@ -1389,7 +1389,7 @@ async def cancel_operation(
13891389
request (:class:`~.operations_pb2.CancelOperationRequest`):
13901390
The request object. Request message for
13911391
`CancelOperation` method.
1392-
retry (google.api_core.retry.Retry): Designation of what errors,
1392+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
13931393
if any, should be retried.
13941394
timeout (float): The timeout for this request.
13951395
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1405,7 +1405,7 @@ async def cancel_operation(
14051405

14061406
# Wrap the RPC method; this adds retry and timeout information,
14071407
# and friendly error handling.
1408-
rpc = gapic_v1.method.wrap_method(
1408+
rpc = gapic_v1.method_async.wrap_method(
14091409
self._client._transport.cancel_operation,
14101410
default_timeout=None,
14111411
client_info=DEFAULT_CLIENT_INFO,
@@ -1439,7 +1439,7 @@ async def get_location(
14391439
request (:class:`~.location_pb2.GetLocationRequest`):
14401440
The request object. Request message for
14411441
`GetLocation` method.
1442-
retry (google.api_core.retry.Retry): Designation of what errors,
1442+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
14431443
if any, should be retried.
14441444
timeout (float): The timeout for this request.
14451445
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1456,7 +1456,7 @@ async def get_location(
14561456

14571457
# Wrap the RPC method; this adds retry and timeout information,
14581458
# and friendly error handling.
1459-
rpc = gapic_v1.method.wrap_method(
1459+
rpc = gapic_v1.method_async.wrap_method(
14601460
self._client._transport.get_location,
14611461
default_timeout=None,
14621462
client_info=DEFAULT_CLIENT_INFO,
@@ -1493,7 +1493,7 @@ async def list_locations(
14931493
request (:class:`~.location_pb2.ListLocationsRequest`):
14941494
The request object. Request message for
14951495
`ListLocations` method.
1496-
retry (google.api_core.retry.Retry): Designation of what errors,
1496+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
14971497
if any, should be retried.
14981498
timeout (float): The timeout for this request.
14991499
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -1510,7 +1510,7 @@ async def list_locations(
15101510

15111511
# Wrap the RPC method; this adds retry and timeout information,
15121512
# and friendly error handling.
1513-
rpc = gapic_v1.method.wrap_method(
1513+
rpc = gapic_v1.method_async.wrap_method(
15141514
self._client._transport.list_locations,
15151515
default_timeout=None,
15161516
client_info=DEFAULT_CLIENT_INFO,

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/services/answer_records/async_client.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@
3030

3131
from google.api_core import exceptions as core_exceptions
3232
from google.api_core import gapic_v1
33-
from google.api_core import retry as retries
33+
from google.api_core import retry_async as retries
3434
from google.api_core.client_options import ClientOptions
3535
from google.auth import credentials as ga_credentials # type: ignore
3636
from google.oauth2 import service_account # type: ignore
3737

3838
from google.cloud.dialogflow_v2 import gapic_version as package_version
3939

4040
try:
41-
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault]
41+
OptionalRetry = Union[retries.AsyncRetry, gapic_v1.method._MethodDefault]
4242
except AttributeError: # pragma: NO COVER
43-
OptionalRetry = Union[retries.Retry, object] # type: ignore
43+
OptionalRetry = Union[retries.AsyncRetry, object] # type: ignore
4444

4545
from google.cloud.location import locations_pb2 # type: ignore
4646
from google.longrunning import operations_pb2 # type: ignore
@@ -278,7 +278,7 @@ async def sample_list_answer_records():
278278
This corresponds to the ``parent`` field
279279
on the ``request`` instance; if ``request`` is provided, this
280280
should not be set.
281-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
281+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
282282
should be retried.
283283
timeout (float): The timeout for this request.
284284
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -399,7 +399,7 @@ async def sample_update_answer_record():
399399
This corresponds to the ``update_mask`` field
400400
on the ``request`` instance; if ``request`` is provided, this
401401
should not be set.
402-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
402+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
403403
should be retried.
404404
timeout (float): The timeout for this request.
405405
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -503,7 +503,7 @@ async def list_operations(
503503
request (:class:`~.operations_pb2.ListOperationsRequest`):
504504
The request object. Request message for
505505
`ListOperations` method.
506-
retry (google.api_core.retry.Retry): Designation of what errors,
506+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
507507
if any, should be retried.
508508
timeout (float): The timeout for this request.
509509
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -520,7 +520,7 @@ async def list_operations(
520520

521521
# Wrap the RPC method; this adds retry and timeout information,
522522
# and friendly error handling.
523-
rpc = gapic_v1.method.wrap_method(
523+
rpc = gapic_v1.method_async.wrap_method(
524524
self._client._transport.list_operations,
525525
default_timeout=None,
526526
client_info=DEFAULT_CLIENT_INFO,
@@ -557,7 +557,7 @@ async def get_operation(
557557
request (:class:`~.operations_pb2.GetOperationRequest`):
558558
The request object. Request message for
559559
`GetOperation` method.
560-
retry (google.api_core.retry.Retry): Designation of what errors,
560+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
561561
if any, should be retried.
562562
timeout (float): The timeout for this request.
563563
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -574,7 +574,7 @@ async def get_operation(
574574

575575
# Wrap the RPC method; this adds retry and timeout information,
576576
# and friendly error handling.
577-
rpc = gapic_v1.method.wrap_method(
577+
rpc = gapic_v1.method_async.wrap_method(
578578
self._client._transport.get_operation,
579579
default_timeout=None,
580580
client_info=DEFAULT_CLIENT_INFO,
@@ -615,7 +615,7 @@ async def cancel_operation(
615615
request (:class:`~.operations_pb2.CancelOperationRequest`):
616616
The request object. Request message for
617617
`CancelOperation` method.
618-
retry (google.api_core.retry.Retry): Designation of what errors,
618+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
619619
if any, should be retried.
620620
timeout (float): The timeout for this request.
621621
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -631,7 +631,7 @@ async def cancel_operation(
631631

632632
# Wrap the RPC method; this adds retry and timeout information,
633633
# and friendly error handling.
634-
rpc = gapic_v1.method.wrap_method(
634+
rpc = gapic_v1.method_async.wrap_method(
635635
self._client._transport.cancel_operation,
636636
default_timeout=None,
637637
client_info=DEFAULT_CLIENT_INFO,
@@ -665,7 +665,7 @@ async def get_location(
665665
request (:class:`~.location_pb2.GetLocationRequest`):
666666
The request object. Request message for
667667
`GetLocation` method.
668-
retry (google.api_core.retry.Retry): Designation of what errors,
668+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
669669
if any, should be retried.
670670
timeout (float): The timeout for this request.
671671
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -682,7 +682,7 @@ async def get_location(
682682

683683
# Wrap the RPC method; this adds retry and timeout information,
684684
# and friendly error handling.
685-
rpc = gapic_v1.method.wrap_method(
685+
rpc = gapic_v1.method_async.wrap_method(
686686
self._client._transport.get_location,
687687
default_timeout=None,
688688
client_info=DEFAULT_CLIENT_INFO,
@@ -719,7 +719,7 @@ async def list_locations(
719719
request (:class:`~.location_pb2.ListLocationsRequest`):
720720
The request object. Request message for
721721
`ListLocations` method.
722-
retry (google.api_core.retry.Retry): Designation of what errors,
722+
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors,
723723
if any, should be retried.
724724
timeout (float): The timeout for this request.
725725
metadata (Sequence[Tuple[str, str]]): Strings which should be
@@ -736,7 +736,7 @@ async def list_locations(
736736

737737
# Wrap the RPC method; this adds retry and timeout information,
738738
# and friendly error handling.
739-
rpc = gapic_v1.method.wrap_method(
739+
rpc = gapic_v1.method_async.wrap_method(
740740
self._client._transport.list_locations,
741741
default_timeout=None,
742742
client_info=DEFAULT_CLIENT_INFO,

0 commit comments

Comments
 (0)