Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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():
Expand Down
14 changes: 14 additions & 0 deletions google/cloud/optimization_v1/services/fleet_routing/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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():
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[mypy]
python_version = 3.6
python_version = 3.7
namespace_packages = True
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
80 changes: 40 additions & 40 deletions samples/generated_samples/snippet_metadata_optimization_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
],
Expand Down Expand Up @@ -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"
}
],
Expand Down Expand Up @@ -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"
}
],
Expand Down Expand Up @@ -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"
}
],
Expand Down