From 3a0c4d74462ef724ef2d95901b0a28159ac6c66b Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 14:27:54 -0700 Subject: [PATCH] chore: use gapic-generator-python 0.63.2 (#84) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: use gapic-generator-python 0.63.2 PiperOrigin-RevId: 427792504 Source-Link: https://github.com/googleapis/googleapis/commit/55b9e1e0b3106c850d13958352bc0751147b6b15 Source-Link: https://github.com/googleapis/googleapis-gen/commit/bf4e86b753f42cb0edb1fd51fbe840d7da0a1cde Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmY0ZTg2Yjc1M2Y0MmNiMGVkYjFmZDUxZmJlODQwZDdkYTBhMWNkZSJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../connection_service/async_client.py | 2 + .../services/connection_service/client.py | 2 + .../services/tether/async_client.py | 3 ++ .../services/tether/client.py | 3 ++ ...nnection_service_list_connections_async.py | 2 + ...onnection_service_list_connections_sync.py | 2 + ...ed_apigeeconnect_v1_tether_egress_async.py | 3 ++ ...ted_apigeeconnect_v1_tether_egress_sync.py | 3 ++ .../snippet_metadata_apigeeconnect_v1.json | 40 +++++++++++-------- 9 files changed, 44 insertions(+), 16 deletions(-) diff --git a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/async_client.py b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/async_client.py index dd9fb1703ebf..f5bf35d1c688 100644 --- a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/async_client.py +++ b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/async_client.py @@ -232,6 +232,8 @@ def sample_list_connections(): # Make the request page_result = client.list_connections(request=request) + + # Handle the response for response in page_result: print(response) diff --git a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/client.py b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/client.py index 419182f86544..a9792e785eb1 100644 --- a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/client.py +++ b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/connection_service/client.py @@ -429,6 +429,8 @@ def sample_list_connections(): # Make the request page_result = client.list_connections(request=request) + + # Handle the response for response in page_result: print(response) diff --git a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/async_client.py b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/async_client.py index 425b96669918..eb2332ac51b2 100644 --- a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/async_client.py +++ b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/async_client.py @@ -240,12 +240,15 @@ def sample_egress(): # Here we create a generator that yields a single `request` for # demonstrative purposes. requests = [request] + def request_generator(): for request in requests: yield request # Make the request stream = client.egress(requests=request_generator()) + + # Handle the response for response in stream: print(response) diff --git a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/client.py b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/client.py index a9afb09ca1c2..44085c15424f 100644 --- a/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/client.py +++ b/packages/google-cloud-apigee-connect/google/cloud/apigeeconnect_v1/services/tether/client.py @@ -422,12 +422,15 @@ def sample_egress(): # Here we create a generator that yields a single `request` for # demonstrative purposes. requests = [request] + def request_generator(): for request in requests: yield request # Make the request stream = client.egress(requests=request_generator()) + + # Handle the response for response in stream: print(response) diff --git a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_async.py b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_async.py index 5be38573732f..f506c41c3b24 100644 --- a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_async.py +++ b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_async.py @@ -38,6 +38,8 @@ async def sample_list_connections(): # Make the request page_result = client.list_connections(request=request) + + # Handle the response async for response in page_result: print(response) diff --git a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_sync.py b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_sync.py index 28140d815478..7f8d6830a95a 100644 --- a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_sync.py +++ b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_connection_service_list_connections_sync.py @@ -38,6 +38,8 @@ def sample_list_connections(): # Make the request page_result = client.list_connections(request=request) + + # Handle the response for response in page_result: print(response) diff --git a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_async.py b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_async.py index 1836c5b429f5..442744ffc463 100644 --- a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_async.py +++ b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_async.py @@ -40,12 +40,15 @@ async def sample_egress(): # Here we create a generator that yields a single `request` for # demonstrative purposes. requests = [request] + def request_generator(): for request in requests: yield request # Make the request stream = await client.egress(requests=request_generator()) + + # Handle the response async for response in stream: print(response) diff --git a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_sync.py b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_sync.py index 35cb4ca7fe96..9f41a2b9b41f 100644 --- a/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_sync.py +++ b/packages/google-cloud-apigee-connect/samples/generated_samples/apigeeconnect_generated_apigeeconnect_v1_tether_egress_sync.py @@ -40,12 +40,15 @@ def sample_egress(): # Here we create a generator that yields a single `request` for # demonstrative purposes. requests = [request] + def request_generator(): for request in requests: yield request # Make the request stream = client.egress(requests=request_generator()) + + # Handle the response for response in stream: print(response) diff --git a/packages/google-cloud-apigee-connect/samples/generated_samples/snippet_metadata_apigeeconnect_v1.json b/packages/google-cloud-apigee-connect/samples/generated_samples/snippet_metadata_apigeeconnect_v1.json index 17ffce8fac04..285d56798225 100644 --- a/packages/google-cloud-apigee-connect/samples/generated_samples/snippet_metadata_apigeeconnect_v1.json +++ b/packages/google-cloud-apigee-connect/samples/generated_samples/snippet_metadata_apigeeconnect_v1.json @@ -14,12 +14,12 @@ "regionTag": "apigeeconnect_generated_apigeeconnect_v1_ConnectionService_ListConnections_async", "segments": [ { - "end": 43, + "end": 45, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 45, "start": 27, "type": "SHORT" }, @@ -34,11 +34,13 @@ "type": "REQUEST_INITIALIZATION" }, { + "end": 41, "start": 39, "type": "REQUEST_EXECUTION" }, { - "end": 44, + "end": 46, + "start": 42, "type": "RESPONSE_HANDLING" } ] @@ -56,12 +58,12 @@ "regionTag": "apigeeconnect_generated_apigeeconnect_v1_ConnectionService_ListConnections_sync", "segments": [ { - "end": 43, + "end": 45, "start": 27, "type": "FULL" }, { - "end": 43, + "end": 45, "start": 27, "type": "SHORT" }, @@ -76,11 +78,13 @@ "type": "REQUEST_INITIALIZATION" }, { + "end": 41, "start": 39, "type": "REQUEST_EXECUTION" }, { - "end": 44, + "end": 46, + "start": 42, "type": "RESPONSE_HANDLING" } ] @@ -99,12 +103,12 @@ "regionTag": "apigeeconnect_generated_apigeeconnect_v1_Tether_Egress_async", "segments": [ { - "end": 51, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 54, "start": 27, "type": "SHORT" }, @@ -114,16 +118,18 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 34, "type": "REQUEST_INITIALIZATION" }, { - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 55, + "start": 51, "type": "RESPONSE_HANDLING" } ] @@ -141,12 +147,12 @@ "regionTag": "apigeeconnect_generated_apigeeconnect_v1_Tether_Egress_sync", "segments": [ { - "end": 51, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 51, + "end": 54, "start": 27, "type": "SHORT" }, @@ -156,16 +162,18 @@ "type": "CLIENT_INITIALIZATION" }, { - "end": 46, + "end": 47, "start": 34, "type": "REQUEST_INITIALIZATION" }, { - "start": 47, + "end": 50, + "start": 48, "type": "REQUEST_EXECUTION" }, { - "end": 52, + "end": 55, + "start": 51, "type": "RESPONSE_HANDLING" } ]