diff --git a/google/cloud/optimization_v1/services/fleet_routing/async_client.py b/google/cloud/optimization_v1/services/fleet_routing/async_client.py index 02c0e5b..0b80ec9 100644 --- a/google/cloud/optimization_v1/services/fleet_routing/async_client.py +++ b/google/cloud/optimization_v1/services/fleet_routing/async_client.py @@ -248,6 +248,13 @@ async def optimize_tours( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 async def sample_optimize_tours(): @@ -344,6 +351,13 @@ async def batch_optimize_tours( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 async def sample_batch_optimize_tours(): diff --git a/google/cloud/optimization_v1/services/fleet_routing/client.py b/google/cloud/optimization_v1/services/fleet_routing/client.py index 35cb358..bf9721e 100644 --- a/google/cloud/optimization_v1/services/fleet_routing/client.py +++ b/google/cloud/optimization_v1/services/fleet_routing/client.py @@ -455,6 +455,13 @@ def optimize_tours( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 def sample_optimize_tours(): @@ -543,6 +550,13 @@ def batch_optimize_tours( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 def sample_batch_optimize_tours(): diff --git a/mypy.ini b/mypy.ini index 4505b48..574c5ae 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.6 +python_version = 3.7 namespace_packages = True diff --git a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py index e9df651..bca0e3f 100644 --- a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py +++ b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py @@ -24,6 +24,13 @@ # [START cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 diff --git a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py index 1fa4c3e..7750123 100644 --- a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py +++ b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py @@ -24,6 +24,13 @@ # [START cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 diff --git a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py index 973e6c1..1ff26eb 100644 --- a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py +++ b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py @@ -24,6 +24,13 @@ # [START cloudoptimization_v1_generated_FleetRouting_OptimizeTours_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 diff --git a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py index b3352d1..a0e4335 100644 --- a/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py +++ b/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py @@ -24,6 +24,13 @@ # [START cloudoptimization_v1_generated_FleetRouting_OptimizeTours_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import optimization_v1 diff --git a/samples/generated_samples/snippet_metadata_optimization_v1.json b/samples/generated_samples/snippet_metadata_optimization_v1.json index c35e77d..777350b 100644 --- a/samples/generated_samples/snippet_metadata_optimization_v1.json +++ b/samples/generated_samples/snippet_metadata_optimization_v1.json @@ -55,33 +55,33 @@ "regionTag": "cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_async", "segments": [ { - "end": 53, + "end": 60, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 60, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 43, - "start": 34, + "end": 50, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 44, + "end": 57, + "start": 51, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 61, + "start": 58, "type": "RESPONSE_HANDLING" } ], @@ -131,33 +131,33 @@ "regionTag": "cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_sync", "segments": [ { - "end": 53, + "end": 60, "start": 27, "type": "FULL" }, { - "end": 53, + "end": 60, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 43, - "start": 34, + "end": 50, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 50, - "start": 44, + "end": 57, + "start": 51, "type": "REQUEST_EXECUTION" }, { - "end": 54, - "start": 51, + "end": 61, + "start": 58, "type": "RESPONSE_HANDLING" } ], @@ -208,33 +208,33 @@ "regionTag": "cloudoptimization_v1_generated_FleetRouting_OptimizeTours_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -284,33 +284,33 @@ "regionTag": "cloudoptimization_v1_generated_FleetRouting_OptimizeTours_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ],