Skip to content

Commit 94c6d32

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#187)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: googleapis/googleapis@332ecf5 Source-Link: googleapis/googleapis-gen@4313d68 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9
1 parent f2086e3 commit 94c6d32

File tree

55 files changed

+1153
-481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1153
-481
lines changed

packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/async_client.py

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,13 @@ async def list_nodes(
218218
219219
.. code-block:: python
220220
221+
# This snippet has been automatically generated and should be regarded as a
222+
# code template only.
223+
# It will require modifications to work:
224+
# - It may require correct/in-range values for request initialization.
225+
# - It may require specifying regional endpoints when creating the service
226+
# client as shown in:
227+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
221228
from google.cloud import tpu_v1
222229
223230
async def sample_list_nodes():
@@ -324,6 +331,13 @@ async def get_node(
324331
325332
.. code-block:: python
326333
334+
# This snippet has been automatically generated and should be regarded as a
335+
# code template only.
336+
# It will require modifications to work:
337+
# - It may require correct/in-range values for request initialization.
338+
# - It may require specifying regional endpoints when creating the service
339+
# client as shown in:
340+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
327341
from google.cloud import tpu_v1
328342
329343
async def sample_get_node():
@@ -417,6 +431,13 @@ async def create_node(
417431
418432
.. code-block:: python
419433
434+
# This snippet has been automatically generated and should be regarded as a
435+
# code template only.
436+
# It will require modifications to work:
437+
# - It may require correct/in-range values for request initialization.
438+
# - It may require specifying regional endpoints when creating the service
439+
# client as shown in:
440+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
420441
from google.cloud import tpu_v1
421442
422443
async def sample_create_node():
@@ -543,6 +564,13 @@ async def delete_node(
543564
544565
.. code-block:: python
545566
567+
# This snippet has been automatically generated and should be regarded as a
568+
# code template only.
569+
# It will require modifications to work:
570+
# - It may require correct/in-range values for request initialization.
571+
# - It may require specifying regional endpoints when creating the service
572+
# client as shown in:
573+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
546574
from google.cloud import tpu_v1
547575
548576
async def sample_delete_node():
@@ -649,6 +677,13 @@ async def reimage_node(
649677
650678
.. code-block:: python
651679
680+
# This snippet has been automatically generated and should be regarded as a
681+
# code template only.
682+
# It will require modifications to work:
683+
# - It may require correct/in-range values for request initialization.
684+
# - It may require specifying regional endpoints when creating the service
685+
# client as shown in:
686+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
652687
from google.cloud import tpu_v1
653688
654689
async def sample_reimage_node():
@@ -735,6 +770,13 @@ async def stop_node(
735770
736771
.. code-block:: python
737772
773+
# This snippet has been automatically generated and should be regarded as a
774+
# code template only.
775+
# It will require modifications to work:
776+
# - It may require correct/in-range values for request initialization.
777+
# - It may require specifying regional endpoints when creating the service
778+
# client as shown in:
779+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
738780
from google.cloud import tpu_v1
739781
740782
async def sample_stop_node():
@@ -821,6 +863,13 @@ async def start_node(
821863
822864
.. code-block:: python
823865
866+
# This snippet has been automatically generated and should be regarded as a
867+
# code template only.
868+
# It will require modifications to work:
869+
# - It may require correct/in-range values for request initialization.
870+
# - It may require specifying regional endpoints when creating the service
871+
# client as shown in:
872+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
824873
from google.cloud import tpu_v1
825874
826875
async def sample_start_node():
@@ -908,6 +957,13 @@ async def list_tensor_flow_versions(
908957
909958
.. code-block:: python
910959
960+
# This snippet has been automatically generated and should be regarded as a
961+
# code template only.
962+
# It will require modifications to work:
963+
# - It may require correct/in-range values for request initialization.
964+
# - It may require specifying regional endpoints when creating the service
965+
# client as shown in:
966+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
911967
from google.cloud import tpu_v1
912968
913969
async def sample_list_tensor_flow_versions():
@@ -1014,6 +1070,13 @@ async def get_tensor_flow_version(
10141070
10151071
.. code-block:: python
10161072
1073+
# This snippet has been automatically generated and should be regarded as a
1074+
# code template only.
1075+
# It will require modifications to work:
1076+
# - It may require correct/in-range values for request initialization.
1077+
# - It may require specifying regional endpoints when creating the service
1078+
# client as shown in:
1079+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10171080
from google.cloud import tpu_v1
10181081
10191082
async def sample_get_tensor_flow_version():
@@ -1107,6 +1170,13 @@ async def list_accelerator_types(
11071170
11081171
.. code-block:: python
11091172
1173+
# This snippet has been automatically generated and should be regarded as a
1174+
# code template only.
1175+
# It will require modifications to work:
1176+
# - It may require correct/in-range values for request initialization.
1177+
# - It may require specifying regional endpoints when creating the service
1178+
# client as shown in:
1179+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11101180
from google.cloud import tpu_v1
11111181
11121182
async def sample_list_accelerator_types():
@@ -1213,6 +1283,13 @@ async def get_accelerator_type(
12131283
12141284
.. code-block:: python
12151285
1286+
# This snippet has been automatically generated and should be regarded as a
1287+
# code template only.
1288+
# It will require modifications to work:
1289+
# - It may require correct/in-range values for request initialization.
1290+
# - It may require specifying regional endpoints when creating the service
1291+
# client as shown in:
1292+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
12161293
from google.cloud import tpu_v1
12171294
12181295
async def sample_get_accelerator_type():

packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/client.py

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -489,6 +489,13 @@ def list_nodes(
489489
490490
.. code-block:: python
491491
492+
# This snippet has been automatically generated and should be regarded as a
493+
# code template only.
494+
# It will require modifications to work:
495+
# - It may require correct/in-range values for request initialization.
496+
# - It may require specifying regional endpoints when creating the service
497+
# client as shown in:
498+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
492499
from google.cloud import tpu_v1
493500
494501
def sample_list_nodes():
@@ -595,6 +602,13 @@ def get_node(
595602
596603
.. code-block:: python
597604
605+
# This snippet has been automatically generated and should be regarded as a
606+
# code template only.
607+
# It will require modifications to work:
608+
# - It may require correct/in-range values for request initialization.
609+
# - It may require specifying regional endpoints when creating the service
610+
# client as shown in:
611+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
598612
from google.cloud import tpu_v1
599613
600614
def sample_get_node():
@@ -688,6 +702,13 @@ def create_node(
688702
689703
.. code-block:: python
690704
705+
# This snippet has been automatically generated and should be regarded as a
706+
# code template only.
707+
# It will require modifications to work:
708+
# - It may require correct/in-range values for request initialization.
709+
# - It may require specifying regional endpoints when creating the service
710+
# client as shown in:
711+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
691712
from google.cloud import tpu_v1
692713
693714
def sample_create_node():
@@ -814,6 +835,13 @@ def delete_node(
814835
815836
.. code-block:: python
816837
838+
# This snippet has been automatically generated and should be regarded as a
839+
# code template only.
840+
# It will require modifications to work:
841+
# - It may require correct/in-range values for request initialization.
842+
# - It may require specifying regional endpoints when creating the service
843+
# client as shown in:
844+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
817845
from google.cloud import tpu_v1
818846
819847
def sample_delete_node():
@@ -920,6 +948,13 @@ def reimage_node(
920948
921949
.. code-block:: python
922950
951+
# This snippet has been automatically generated and should be regarded as a
952+
# code template only.
953+
# It will require modifications to work:
954+
# - It may require correct/in-range values for request initialization.
955+
# - It may require specifying regional endpoints when creating the service
956+
# client as shown in:
957+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
923958
from google.cloud import tpu_v1
924959
925960
def sample_reimage_node():
@@ -1007,6 +1042,13 @@ def stop_node(
10071042
10081043
.. code-block:: python
10091044
1045+
# This snippet has been automatically generated and should be regarded as a
1046+
# code template only.
1047+
# It will require modifications to work:
1048+
# - It may require correct/in-range values for request initialization.
1049+
# - It may require specifying regional endpoints when creating the service
1050+
# client as shown in:
1051+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10101052
from google.cloud import tpu_v1
10111053
10121054
def sample_stop_node():
@@ -1094,6 +1136,13 @@ def start_node(
10941136
10951137
.. code-block:: python
10961138
1139+
# This snippet has been automatically generated and should be regarded as a
1140+
# code template only.
1141+
# It will require modifications to work:
1142+
# - It may require correct/in-range values for request initialization.
1143+
# - It may require specifying regional endpoints when creating the service
1144+
# client as shown in:
1145+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10971146
from google.cloud import tpu_v1
10981147
10991148
def sample_start_node():
@@ -1182,6 +1231,13 @@ def list_tensor_flow_versions(
11821231
11831232
.. code-block:: python
11841233
1234+
# This snippet has been automatically generated and should be regarded as a
1235+
# code template only.
1236+
# It will require modifications to work:
1237+
# - It may require correct/in-range values for request initialization.
1238+
# - It may require specifying regional endpoints when creating the service
1239+
# client as shown in:
1240+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11851241
from google.cloud import tpu_v1
11861242
11871243
def sample_list_tensor_flow_versions():
@@ -1290,6 +1346,13 @@ def get_tensor_flow_version(
12901346
12911347
.. code-block:: python
12921348
1349+
# This snippet has been automatically generated and should be regarded as a
1350+
# code template only.
1351+
# It will require modifications to work:
1352+
# - It may require correct/in-range values for request initialization.
1353+
# - It may require specifying regional endpoints when creating the service
1354+
# client as shown in:
1355+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
12931356
from google.cloud import tpu_v1
12941357
12951358
def sample_get_tensor_flow_version():
@@ -1383,6 +1446,13 @@ def list_accelerator_types(
13831446
13841447
.. code-block:: python
13851448
1449+
# This snippet has been automatically generated and should be regarded as a
1450+
# code template only.
1451+
# It will require modifications to work:
1452+
# - It may require correct/in-range values for request initialization.
1453+
# - It may require specifying regional endpoints when creating the service
1454+
# client as shown in:
1455+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
13861456
from google.cloud import tpu_v1
13871457
13881458
def sample_list_accelerator_types():
@@ -1489,6 +1559,13 @@ def get_accelerator_type(
14891559
14901560
.. code-block:: python
14911561
1562+
# This snippet has been automatically generated and should be regarded as a
1563+
# code template only.
1564+
# It will require modifications to work:
1565+
# - It may require correct/in-range values for request initialization.
1566+
# - It may require specifying regional endpoints when creating the service
1567+
# client as shown in:
1568+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
14921569
from google.cloud import tpu_v1
14931570
14941571
def sample_get_accelerator_type():

0 commit comments

Comments
 (0)