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" } ]