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

Commit 2dfee7b

Browse files
fix: Add async context manager return types (#355)
* 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 dc6b014 commit 2dfee7b

File tree

6 files changed

+140
-108
lines changed

6 files changed

+140
-108
lines changed

google/analytics/admin_v1alpha/services/analytics_admin_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13258,7 +13258,7 @@ async def sample_delete_event_create_rule():
1325813258
metadata=metadata,
1325913259
)
1326013260

13261-
async def __aenter__(self):
13261+
async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
1326213262
return self
1326313263

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

google/analytics/admin_v1beta/services/analytics_admin_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5390,7 +5390,7 @@ async def sample_run_access_report():
53905390
# Done; return the response.
53915391
return response
53925392

5393-
async def __aenter__(self):
5393+
async def __aenter__(self) -> "AnalyticsAdminServiceAsyncClient":
53945394
return self
53955395

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

samples/generated_samples/snippet_metadata_google.analytics.admin.v1alpha.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-analytics-admin",
11-
"version": "0.18.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

samples/generated_samples/snippet_metadata_google.analytics.admin.v1beta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-analytics-admin",
11-
"version": "0.18.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)