Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit f6aaa2d

Browse files
fix: Add async context manager return types (#645)
* 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 fb03a57 commit f6aaa2d

File tree

64 files changed

+170
-156
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

+170
-156
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1533,7 +1533,7 @@ async def list_locations(
15331533
# Done; return the response.
15341534
return response
15351535

1536-
async def __aenter__(self):
1536+
async def __aenter__(self) -> "AgentsAsyncClient":
15371537
return self
15381538

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

google/cloud/dialogflow_v2/services/answer_records/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ async def list_locations(
755755
# Done; return the response.
756756
return response
757757

758-
async def __aenter__(self):
758+
async def __aenter__(self) -> "AnswerRecordsAsyncClient":
759759
return self
760760

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

google/cloud/dialogflow_v2/services/contexts/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ async def list_locations(
11851185
# Done; return the response.
11861186
return response
11871187

1188-
async def __aenter__(self):
1188+
async def __aenter__(self) -> "ContextsAsyncClient":
11891189
return self
11901190

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

google/cloud/dialogflow_v2/services/conversation_datasets/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1127,7 +1127,7 @@ async def list_locations(
11271127
# Done; return the response.
11281128
return response
11291129

1130-
async def __aenter__(self):
1130+
async def __aenter__(self) -> "ConversationDatasetsAsyncClient":
11311131
return self
11321132

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

google/cloud/dialogflow_v2/services/conversation_models/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ async def list_locations(
15991599
# Done; return the response.
16001600
return response
16011601

1602-
async def __aenter__(self):
1602+
async def __aenter__(self) -> "ConversationModelsAsyncClient":
16031603
return self
16041604

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

google/cloud/dialogflow_v2/services/conversation_profiles/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1426,7 +1426,7 @@ async def list_locations(
14261426
# Done; return the response.
14271427
return response
14281428

1429-
async def __aenter__(self):
1429+
async def __aenter__(self) -> "ConversationProfilesAsyncClient":
14301430
return self
14311431

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

google/cloud/dialogflow_v2/services/conversations/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ async def list_locations(
13251325
# Done; return the response.
13261326
return response
13271327

1328-
async def __aenter__(self):
1328+
async def __aenter__(self) -> "ConversationsAsyncClient":
13291329
return self
13301330

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

google/cloud/dialogflow_v2/services/documents/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ async def list_locations(
15241524
# Done; return the response.
15251525
return response
15261526

1527-
async def __aenter__(self):
1527+
async def __aenter__(self) -> "DocumentsAsyncClient":
15281528
return self
15291529

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ async def list_locations(
18821882
# Done; return the response.
18831883
return response
18841884

1885-
async def __aenter__(self):
1885+
async def __aenter__(self) -> "EntityTypesAsyncClient":
18861886
return self
18871887

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ async def list_locations(
10821082
# Done; return the response.
10831083
return response
10841084

1085-
async def __aenter__(self):
1085+
async def __aenter__(self) -> "EnvironmentsAsyncClient":
10861086
return self
10871087

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

0 commit comments

Comments
 (0)