diff --git a/packages/google-cloud-optimization/google/cloud/optimization_v1/services/fleet_routing/async_client.py b/packages/google-cloud-optimization/google/cloud/optimization_v1/services/fleet_routing/async_client.py index 02c0e5be87cd..0b80ec9aae13 100644 --- a/packages/google-cloud-optimization/google/cloud/optimization_v1/services/fleet_routing/async_client.py +++ b/packages/google-cloud-optimization/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/packages/google-cloud-optimization/google/cloud/optimization_v1/services/fleet_routing/client.py b/packages/google-cloud-optimization/google/cloud/optimization_v1/services/fleet_routing/client.py index 35cb3589e0cb..bf9721e7ef54 100644 --- a/packages/google-cloud-optimization/google/cloud/optimization_v1/services/fleet_routing/client.py +++ b/packages/google-cloud-optimization/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/packages/google-cloud-optimization/mypy.ini b/packages/google-cloud-optimization/mypy.ini index 4505b485436b..574c5aed394b 100644 --- a/packages/google-cloud-optimization/mypy.ini +++ b/packages/google-cloud-optimization/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.6 +python_version = 3.7 namespace_packages = True diff --git a/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py b/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py index e9df651af462..bca0e3fa7a7c 100644 --- a/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py +++ b/packages/google-cloud-optimization/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/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py b/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py index 1fa4c3edde0d..77501238caac 100644 --- a/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py +++ b/packages/google-cloud-optimization/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/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py b/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py index 973e6c1643d8..1ff26eb6deb2 100644 --- a/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py +++ b/packages/google-cloud-optimization/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/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py b/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py index b3352d1e26e6..a0e4335e4558 100644 --- a/packages/google-cloud-optimization/samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py +++ b/packages/google-cloud-optimization/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/packages/google-cloud-optimization/samples/generated_samples/snippet_metadata_optimization_v1.json b/packages/google-cloud-optimization/samples/generated_samples/snippet_metadata_optimization_v1.json index c35e77d322f7..777350b29106 100644 --- a/packages/google-cloud-optimization/samples/generated_samples/snippet_metadata_optimization_v1.json +++ b/packages/google-cloud-optimization/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" } ],