This repository was archived by the owner on Nov 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +97
-41
lines changed
google/cloud/optimization_v1/services/fleet_routing
samples/generated_samples Expand file tree Collapse file tree 8 files changed +97
-41
lines changed Original file line number Diff line number Diff line change @@ -248,6 +248,13 @@ async def optimize_tours(
248
248
249
249
.. code-block:: python
250
250
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
251
258
from google.cloud import optimization_v1
252
259
253
260
async def sample_optimize_tours():
@@ -344,6 +351,13 @@ async def batch_optimize_tours(
344
351
345
352
.. code-block:: python
346
353
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
347
361
from google.cloud import optimization_v1
348
362
349
363
async def sample_batch_optimize_tours():
Original file line number Diff line number Diff line change @@ -455,6 +455,13 @@ def optimize_tours(
455
455
456
456
.. code-block:: python
457
457
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
458
465
from google.cloud import optimization_v1
459
466
460
467
def sample_optimize_tours():
@@ -543,6 +550,13 @@ def batch_optimize_tours(
543
550
544
551
.. code-block:: python
545
552
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
546
560
from google.cloud import optimization_v1
547
561
548
562
def sample_batch_optimize_tours():
Original file line number Diff line number Diff line change 1
1
[mypy]
2
- python_version = 3.6
2
+ python_version = 3.7
3
3
namespace_packages = True
Original file line number Diff line number Diff line change 24
24
25
25
26
26
# [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
27
34
from google .cloud import optimization_v1
28
35
29
36
Original file line number Diff line number Diff line change 24
24
25
25
26
26
# [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
27
34
from google .cloud import optimization_v1
28
35
29
36
Original file line number Diff line number Diff line change 24
24
25
25
26
26
# [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
27
34
from google .cloud import optimization_v1
28
35
29
36
Original file line number Diff line number Diff line change 24
24
25
25
26
26
# [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
27
34
from google .cloud import optimization_v1
28
35
29
36
Original file line number Diff line number Diff line change 55
55
"regionTag" : " cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_async" ,
56
56
"segments" : [
57
57
{
58
- "end" : 53 ,
58
+ "end" : 60 ,
59
59
"start" : 27 ,
60
60
"type" : " FULL"
61
61
},
62
62
{
63
- "end" : 53 ,
63
+ "end" : 60 ,
64
64
"start" : 27 ,
65
65
"type" : " SHORT"
66
66
},
67
67
{
68
- "end" : 33 ,
69
- "start" : 31 ,
68
+ "end" : 40 ,
69
+ "start" : 38 ,
70
70
"type" : " CLIENT_INITIALIZATION"
71
71
},
72
72
{
73
- "end" : 43 ,
74
- "start" : 34 ,
73
+ "end" : 50 ,
74
+ "start" : 41 ,
75
75
"type" : " REQUEST_INITIALIZATION"
76
76
},
77
77
{
78
- "end" : 50 ,
79
- "start" : 44 ,
78
+ "end" : 57 ,
79
+ "start" : 51 ,
80
80
"type" : " REQUEST_EXECUTION"
81
81
},
82
82
{
83
- "end" : 54 ,
84
- "start" : 51 ,
83
+ "end" : 61 ,
84
+ "start" : 58 ,
85
85
"type" : " RESPONSE_HANDLING"
86
86
}
87
87
],
131
131
"regionTag" : " cloudoptimization_v1_generated_FleetRouting_BatchOptimizeTours_sync" ,
132
132
"segments" : [
133
133
{
134
- "end" : 53 ,
134
+ "end" : 60 ,
135
135
"start" : 27 ,
136
136
"type" : " FULL"
137
137
},
138
138
{
139
- "end" : 53 ,
139
+ "end" : 60 ,
140
140
"start" : 27 ,
141
141
"type" : " SHORT"
142
142
},
143
143
{
144
- "end" : 33 ,
145
- "start" : 31 ,
144
+ "end" : 40 ,
145
+ "start" : 38 ,
146
146
"type" : " CLIENT_INITIALIZATION"
147
147
},
148
148
{
149
- "end" : 43 ,
150
- "start" : 34 ,
149
+ "end" : 50 ,
150
+ "start" : 41 ,
151
151
"type" : " REQUEST_INITIALIZATION"
152
152
},
153
153
{
154
- "end" : 50 ,
155
- "start" : 44 ,
154
+ "end" : 57 ,
155
+ "start" : 51 ,
156
156
"type" : " REQUEST_EXECUTION"
157
157
},
158
158
{
159
- "end" : 54 ,
160
- "start" : 51 ,
159
+ "end" : 61 ,
160
+ "start" : 58 ,
161
161
"type" : " RESPONSE_HANDLING"
162
162
}
163
163
],
208
208
"regionTag" : " cloudoptimization_v1_generated_FleetRouting_OptimizeTours_async" ,
209
209
"segments" : [
210
210
{
211
- "end" : 44 ,
211
+ "end" : 51 ,
212
212
"start" : 27 ,
213
213
"type" : " FULL"
214
214
},
215
215
{
216
- "end" : 44 ,
216
+ "end" : 51 ,
217
217
"start" : 27 ,
218
218
"type" : " SHORT"
219
219
},
220
220
{
221
- "end" : 33 ,
222
- "start" : 31 ,
221
+ "end" : 40 ,
222
+ "start" : 38 ,
223
223
"type" : " CLIENT_INITIALIZATION"
224
224
},
225
225
{
226
- "end" : 38 ,
227
- "start" : 34 ,
226
+ "end" : 45 ,
227
+ "start" : 41 ,
228
228
"type" : " REQUEST_INITIALIZATION"
229
229
},
230
230
{
231
- "end" : 41 ,
232
- "start" : 39 ,
231
+ "end" : 48 ,
232
+ "start" : 46 ,
233
233
"type" : " REQUEST_EXECUTION"
234
234
},
235
235
{
236
- "end" : 45 ,
237
- "start" : 42 ,
236
+ "end" : 52 ,
237
+ "start" : 49 ,
238
238
"type" : " RESPONSE_HANDLING"
239
239
}
240
240
],
284
284
"regionTag" : " cloudoptimization_v1_generated_FleetRouting_OptimizeTours_sync" ,
285
285
"segments" : [
286
286
{
287
- "end" : 44 ,
287
+ "end" : 51 ,
288
288
"start" : 27 ,
289
289
"type" : " FULL"
290
290
},
291
291
{
292
- "end" : 44 ,
292
+ "end" : 51 ,
293
293
"start" : 27 ,
294
294
"type" : " SHORT"
295
295
},
296
296
{
297
- "end" : 33 ,
298
- "start" : 31 ,
297
+ "end" : 40 ,
298
+ "start" : 38 ,
299
299
"type" : " CLIENT_INITIALIZATION"
300
300
},
301
301
{
302
- "end" : 38 ,
303
- "start" : 34 ,
302
+ "end" : 45 ,
303
+ "start" : 41 ,
304
304
"type" : " REQUEST_INITIALIZATION"
305
305
},
306
306
{
307
- "end" : 41 ,
308
- "start" : 39 ,
307
+ "end" : 48 ,
308
+ "start" : 46 ,
309
309
"type" : " REQUEST_EXECUTION"
310
310
},
311
311
{
312
- "end" : 45 ,
313
- "start" : 42 ,
312
+ "end" : 52 ,
313
+ "start" : 49 ,
314
314
"type" : " RESPONSE_HANDLING"
315
315
}
316
316
],
You can’t perform that action at this time.
0 commit comments