Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit e5e5ceb

Browse files
fix: Add async context manager return types (#529)
* fix: Add async context manager return types chore: Mock return_value should not populate oneof message fields chore: Support snippet generation for services that only support REST transport chore: Update gapic-generator-python to v1.11.0 PiperOrigin-RevId: 545430278 Source-Link: googleapis/googleapis@601b532 Source-Link: https://github.com/googleapis/googleapis-gen/commit/b3f18d0f6560a855022fd058865e7620479d7af9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjNmMThkMGY2NTYwYTg1NTAyMmZkMDU4ODY1ZTc2MjA0NzlkN2FmOSJ9 * 🦉 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>
1 parent 66012a5 commit e5e5ceb

File tree

64 files changed

+178
-130
lines changed

Some content is hidden

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

64 files changed

+178
-130
lines changed

google/cloud/dialogflowcx_v3/services/agents/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1508,7 +1508,7 @@ async def list_locations(
15081508
# Done; return the response.
15091509
return response
15101510

1511-
async def __aenter__(self):
1511+
async def __aenter__(self) -> "AgentsAsyncClient":
15121512
return self
15131513

15141514
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/changelogs/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ async def list_locations(
699699
# Done; return the response.
700700
return response
701701

702-
async def __aenter__(self):
702+
async def __aenter__(self) -> "ChangelogsAsyncClient":
703703
return self
704704

705705
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/deployments/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ async def list_locations(
720720
# Done; return the response.
721721
return response
722722

723-
async def __aenter__(self):
723+
async def __aenter__(self) -> "DeploymentsAsyncClient":
724724
return self
725725

726726
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/entity_types/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ async def list_locations(
11331133
# Done; return the response.
11341134
return response
11351135

1136-
async def __aenter__(self):
1136+
async def __aenter__(self) -> "EntityTypesAsyncClient":
11371137
return self
11381138

11391139
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/environments/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ async def list_locations(
15941594
# Done; return the response.
15951595
return response
15961596

1597-
async def __aenter__(self):
1597+
async def __aenter__(self) -> "EnvironmentsAsyncClient":
15981598
return self
15991599

16001600
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/experiments/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1252,7 +1252,7 @@ async def list_locations(
12521252
# Done; return the response.
12531253
return response
12541254

1255-
async def __aenter__(self):
1255+
async def __aenter__(self) -> "ExperimentsAsyncClient":
12561256
return self
12571257

12581258
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/flows/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ async def list_locations(
16481648
# Done; return the response.
16491649
return response
16501650

1651-
async def __aenter__(self):
1651+
async def __aenter__(self) -> "FlowsAsyncClient":
16521652
return self
16531653

16541654
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/intents/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ async def list_locations(
10481048
# Done; return the response.
10491049
return response
10501050

1051-
async def __aenter__(self):
1051+
async def __aenter__(self) -> "IntentsAsyncClient":
10521052
return self
10531053

10541054
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/pages/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ async def list_locations(
10991099
# Done; return the response.
11001100
return response
11011101

1102-
async def __aenter__(self):
1102+
async def __aenter__(self) -> "PagesAsyncClient":
11031103
return self
11041104

11051105
async def __aexit__(self, exc_type, exc, tb):

google/cloud/dialogflowcx_v3/services/security_settings_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1085,7 +1085,7 @@ async def list_locations(
10851085
# Done; return the response.
10861086
return response
10871087

1088-
async def __aenter__(self):
1088+
async def __aenter__(self) -> "SecuritySettingsServiceAsyncClient":
10891089
return self
10901090

10911091
async def __aexit__(self, exc_type, exc, tb):

0 commit comments

Comments
 (0)