Skip to content
This repository was archived by the owner on Nov 14, 2023. It is now read-only.

Commit 431accc

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#76)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: googleapis/googleapis@332ecf5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4313d682880fd9d7247291164d4e9d3d5bd9f177 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9
1 parent b365dc4 commit 431accc

8 files changed

+97
-41
lines changed

google/cloud/optimization_v1/services/fleet_routing/async_client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,13 @@ async def optimize_tours(
248248
249249
.. code-block:: python
250250
251+
# This snippet has been automatically generated and should be regarded as a
252+
# code template only.
253+
# It will require modifications to work:
254+
# - It may require correct/in-range values for request initialization.
255+
# - It may require specifying regional endpoints when creating the service
256+
# client as shown in:
257+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
251258
from google.cloud import optimization_v1
252259
253260
async def sample_optimize_tours():
@@ -344,6 +351,13 @@ async def batch_optimize_tours(
344351
345352
.. code-block:: python
346353
354+
# This snippet has been automatically generated and should be regarded as a
355+
# code template only.
356+
# It will require modifications to work:
357+
# - It may require correct/in-range values for request initialization.
358+
# - It may require specifying regional endpoints when creating the service
359+
# client as shown in:
360+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
347361
from google.cloud import optimization_v1
348362
349363
async def sample_batch_optimize_tours():

google/cloud/optimization_v1/services/fleet_routing/client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,13 @@ def optimize_tours(
455455
456456
.. code-block:: python
457457
458+
# This snippet has been automatically generated and should be regarded as a
459+
# code template only.
460+
# It will require modifications to work:
461+
# - It may require correct/in-range values for request initialization.
462+
# - It may require specifying regional endpoints when creating the service
463+
# client as shown in:
464+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
458465
from google.cloud import optimization_v1
459466
460467
def sample_optimize_tours():
@@ -543,6 +550,13 @@ def batch_optimize_tours(
543550
544551
.. code-block:: python
545552
553+
# This snippet has been automatically generated and should be regarded as a
554+
# code template only.
555+
# It will require modifications to work:
556+
# - It may require correct/in-range values for request initialization.
557+
# - It may require specifying regional endpoints when creating the service
558+
# client as shown in:
559+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
546560
from google.cloud import optimization_v1
547561
548562
def sample_batch_optimize_tours():

mypy.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[mypy]
2-
python_version = 3.6
2+
python_version = 3.7
33
namespace_packages = True

samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_async.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import optimization_v1
2835

2936

samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_batch_optimize_tours_sync.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import optimization_v1
2835

2936

samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_async.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START cloudoptimization_v1_generated_FleetRouting_OptimizeTours_async]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import optimization_v1
2835

2936

samples/generated_samples/cloudoptimization_v1_generated_fleet_routing_optimize_tours_sync.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

2626
# [START cloudoptimization_v1_generated_FleetRouting_OptimizeTours_sync]
27+
# This snippet has been automatically generated and should be regarded as a
28+
# code template only.
29+
# It will require modifications to work:
30+
# - It may require correct/in-range values for request initialization.
31+
# - It may require specifying regional endpoints when creating the service
32+
# client as shown in:
33+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
2734
from google.cloud import optimization_v1
2835

2936

samples/generated_samples/snippet_metadata_optimization_v1.json

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -55,33 +55,33 @@
5555
"regionTag": "cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_async",
5656
"segments": [
5757
{
58-
"end": 53,
58+
"end": 60,
5959
"start": 27,
6060
"type": "FULL"
6161
},
6262
{
63-
"end": 53,
63+
"end": 60,
6464
"start": 27,
6565
"type": "SHORT"
6666
},
6767
{
68-
"end": 33,
69-
"start": 31,
68+
"end": 40,
69+
"start": 38,
7070
"type": "CLIENT_INITIALIZATION"
7171
},
7272
{
73-
"end": 43,
74-
"start": 34,
73+
"end": 50,
74+
"start": 41,
7575
"type": "REQUEST_INITIALIZATION"
7676
},
7777
{
78-
"end": 50,
79-
"start": 44,
78+
"end": 57,
79+
"start": 51,
8080
"type": "REQUEST_EXECUTION"
8181
},
8282
{
83-
"end": 54,
84-
"start": 51,
83+
"end": 61,
84+
"start": 58,
8585
"type": "RESPONSE_HANDLING"
8686
}
8787
],
@@ -131,33 +131,33 @@
131131
"regionTag": "cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_sync",
132132
"segments": [
133133
{
134-
"end": 53,
134+
"end": 60,
135135
"start": 27,
136136
"type": "FULL"
137137
},
138138
{
139-
"end": 53,
139+
"end": 60,
140140
"start": 27,
141141
"type": "SHORT"
142142
},
143143
{
144-
"end": 33,
145-
"start": 31,
144+
"end": 40,
145+
"start": 38,
146146
"type": "CLIENT_INITIALIZATION"
147147
},
148148
{
149-
"end": 43,
150-
"start": 34,
149+
"end": 50,
150+
"start": 41,
151151
"type": "REQUEST_INITIALIZATION"
152152
},
153153
{
154-
"end": 50,
155-
"start": 44,
154+
"end": 57,
155+
"start": 51,
156156
"type": "REQUEST_EXECUTION"
157157
},
158158
{
159-
"end": 54,
160-
"start": 51,
159+
"end": 61,
160+
"start": 58,
161161
"type": "RESPONSE_HANDLING"
162162
}
163163
],
@@ -208,33 +208,33 @@
208208
"regionTag": "cloudoptimization_v1_generated_FleetRouting_OptimizeTours_async",
209209
"segments": [
210210
{
211-
"end": 44,
211+
"end": 51,
212212
"start": 27,
213213
"type": "FULL"
214214
},
215215
{
216-
"end": 44,
216+
"end": 51,
217217
"start": 27,
218218
"type": "SHORT"
219219
},
220220
{
221-
"end": 33,
222-
"start": 31,
221+
"end": 40,
222+
"start": 38,
223223
"type": "CLIENT_INITIALIZATION"
224224
},
225225
{
226-
"end": 38,
227-
"start": 34,
226+
"end": 45,
227+
"start": 41,
228228
"type": "REQUEST_INITIALIZATION"
229229
},
230230
{
231-
"end": 41,
232-
"start": 39,
231+
"end": 48,
232+
"start": 46,
233233
"type": "REQUEST_EXECUTION"
234234
},
235235
{
236-
"end": 45,
237-
"start": 42,
236+
"end": 52,
237+
"start": 49,
238238
"type": "RESPONSE_HANDLING"
239239
}
240240
],
@@ -284,33 +284,33 @@
284284
"regionTag": "cloudoptimization_v1_generated_FleetRouting_OptimizeTours_sync",
285285
"segments": [
286286
{
287-
"end": 44,
287+
"end": 51,
288288
"start": 27,
289289
"type": "FULL"
290290
},
291291
{
292-
"end": 44,
292+
"end": 51,
293293
"start": 27,
294294
"type": "SHORT"
295295
},
296296
{
297-
"end": 33,
298-
"start": 31,
297+
"end": 40,
298+
"start": 38,
299299
"type": "CLIENT_INITIALIZATION"
300300
},
301301
{
302-
"end": 38,
303-
"start": 34,
302+
"end": 45,
303+
"start": 41,
304304
"type": "REQUEST_INITIALIZATION"
305305
},
306306
{
307-
"end": 41,
308-
"start": 39,
307+
"end": 48,
308+
"start": 46,
309309
"type": "REQUEST_EXECUTION"
310310
},
311311
{
312-
"end": 45,
313-
"start": 42,
312+
"end": 52,
313+
"start": 49,
314314
"type": "RESPONSE_HANDLING"
315315
}
316316
],

0 commit comments

Comments
 (0)