From 94c6d323241cd66eb57d16d2efb0f4834052c095 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 14:46:31 +0000 Subject: [PATCH] chore: Bump gapic-generator-python version to 1.3.0 (#187) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: https://github.com/googleapis/googleapis/commit/332ecf599f8e747d8d1213b77ae7db26eff12814 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4313d682880fd9d7247291164d4e9d3d5bd9f177 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9 --- .../cloud/tpu_v1/services/tpu/async_client.py | 77 +++ .../cloud/tpu_v1/services/tpu/client.py | 77 +++ .../tpu_v2alpha1/services/tpu/async_client.py | 91 +++ .../cloud/tpu_v2alpha1/services/tpu/client.py | 91 +++ packages/google-cloud-tpu/mypy.ini | 2 +- .../snippet_metadata_tpu_v1.json | 440 +++++++-------- .../snippet_metadata_tpu_v2alpha1.json | 520 +++++++++--------- .../tpu_v1_generated_tpu_create_node_async.py | 7 + .../tpu_v1_generated_tpu_create_node_sync.py | 7 + .../tpu_v1_generated_tpu_delete_node_async.py | 7 + .../tpu_v1_generated_tpu_delete_node_sync.py | 7 + ...enerated_tpu_get_accelerator_type_async.py | 7 + ...generated_tpu_get_accelerator_type_sync.py | 7 + .../tpu_v1_generated_tpu_get_node_async.py | 7 + .../tpu_v1_generated_tpu_get_node_sync.py | 7 + ...rated_tpu_get_tensor_flow_version_async.py | 7 + ...erated_tpu_get_tensor_flow_version_sync.py | 7 + ...erated_tpu_list_accelerator_types_async.py | 7 + ...nerated_tpu_list_accelerator_types_sync.py | 7 + .../tpu_v1_generated_tpu_list_nodes_async.py | 7 + .../tpu_v1_generated_tpu_list_nodes_sync.py | 7 + ...ted_tpu_list_tensor_flow_versions_async.py | 7 + ...ated_tpu_list_tensor_flow_versions_sync.py | 7 + ...tpu_v1_generated_tpu_reimage_node_async.py | 7 + .../tpu_v1_generated_tpu_reimage_node_sync.py | 7 + .../tpu_v1_generated_tpu_start_node_async.py | 7 + .../tpu_v1_generated_tpu_start_node_sync.py | 7 + .../tpu_v1_generated_tpu_stop_node_async.py | 7 + .../tpu_v1_generated_tpu_stop_node_sync.py | 7 + ...2alpha1_generated_tpu_create_node_async.py | 7 + ...v2alpha1_generated_tpu_create_node_sync.py | 7 + ...2alpha1_generated_tpu_delete_node_async.py | 7 + ...v2alpha1_generated_tpu_delete_node_sync.py | 7 + ...ted_tpu_generate_service_identity_async.py | 7 + ...ated_tpu_generate_service_identity_sync.py | 7 + ...enerated_tpu_get_accelerator_type_async.py | 7 + ...generated_tpu_get_accelerator_type_sync.py | 7 + ...enerated_tpu_get_guest_attributes_async.py | 7 + ...generated_tpu_get_guest_attributes_sync.py | 7 + ...u_v2alpha1_generated_tpu_get_node_async.py | 7 + ...pu_v2alpha1_generated_tpu_get_node_sync.py | 7 + ...generated_tpu_get_runtime_version_async.py | 7 + ..._generated_tpu_get_runtime_version_sync.py | 7 + ...erated_tpu_list_accelerator_types_async.py | 7 + ...nerated_tpu_list_accelerator_types_sync.py | 7 + ...v2alpha1_generated_tpu_list_nodes_async.py | 7 + ..._v2alpha1_generated_tpu_list_nodes_sync.py | 7 + ...nerated_tpu_list_runtime_versions_async.py | 7 + ...enerated_tpu_list_runtime_versions_sync.py | 7 + ...v2alpha1_generated_tpu_start_node_async.py | 7 + ..._v2alpha1_generated_tpu_start_node_sync.py | 7 + ..._v2alpha1_generated_tpu_stop_node_async.py | 7 + ...u_v2alpha1_generated_tpu_stop_node_sync.py | 7 + ...2alpha1_generated_tpu_update_node_async.py | 7 + ...v2alpha1_generated_tpu_update_node_sync.py | 7 + 55 files changed, 1153 insertions(+), 481 deletions(-) diff --git a/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/async_client.py b/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/async_client.py index dd67eb0d2b47..c185e76b7175 100644 --- a/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/async_client.py +++ b/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/async_client.py @@ -218,6 +218,13 @@ async def list_nodes( .. 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 tpu_v1 async def sample_list_nodes(): @@ -324,6 +331,13 @@ async def get_node( .. 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 tpu_v1 async def sample_get_node(): @@ -417,6 +431,13 @@ async def create_node( .. 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 tpu_v1 async def sample_create_node(): @@ -543,6 +564,13 @@ async def delete_node( .. 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 tpu_v1 async def sample_delete_node(): @@ -649,6 +677,13 @@ async def reimage_node( .. 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 tpu_v1 async def sample_reimage_node(): @@ -735,6 +770,13 @@ async def stop_node( .. 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 tpu_v1 async def sample_stop_node(): @@ -821,6 +863,13 @@ async def start_node( .. 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 tpu_v1 async def sample_start_node(): @@ -908,6 +957,13 @@ async def list_tensor_flow_versions( .. 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 tpu_v1 async def sample_list_tensor_flow_versions(): @@ -1014,6 +1070,13 @@ async def get_tensor_flow_version( .. 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 tpu_v1 async def sample_get_tensor_flow_version(): @@ -1107,6 +1170,13 @@ async def list_accelerator_types( .. 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 tpu_v1 async def sample_list_accelerator_types(): @@ -1213,6 +1283,13 @@ async def get_accelerator_type( .. 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 tpu_v1 async def sample_get_accelerator_type(): diff --git a/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/client.py b/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/client.py index 1fd07dfd5f3e..a68642fc85a6 100644 --- a/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/client.py +++ b/packages/google-cloud-tpu/google/cloud/tpu_v1/services/tpu/client.py @@ -489,6 +489,13 @@ def list_nodes( .. 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 tpu_v1 def sample_list_nodes(): @@ -595,6 +602,13 @@ def get_node( .. 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 tpu_v1 def sample_get_node(): @@ -688,6 +702,13 @@ def create_node( .. 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 tpu_v1 def sample_create_node(): @@ -814,6 +835,13 @@ def delete_node( .. 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 tpu_v1 def sample_delete_node(): @@ -920,6 +948,13 @@ def reimage_node( .. 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 tpu_v1 def sample_reimage_node(): @@ -1007,6 +1042,13 @@ def stop_node( .. 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 tpu_v1 def sample_stop_node(): @@ -1094,6 +1136,13 @@ def start_node( .. 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 tpu_v1 def sample_start_node(): @@ -1182,6 +1231,13 @@ def list_tensor_flow_versions( .. 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 tpu_v1 def sample_list_tensor_flow_versions(): @@ -1290,6 +1346,13 @@ def get_tensor_flow_version( .. 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 tpu_v1 def sample_get_tensor_flow_version(): @@ -1383,6 +1446,13 @@ def list_accelerator_types( .. 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 tpu_v1 def sample_list_accelerator_types(): @@ -1489,6 +1559,13 @@ def get_accelerator_type( .. 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 tpu_v1 def sample_get_accelerator_type(): diff --git a/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/async_client.py b/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/async_client.py index 4b19bc4b8e7e..4ea2fccfdea1 100644 --- a/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/async_client.py +++ b/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/async_client.py @@ -217,6 +217,13 @@ async def list_nodes( .. 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 tpu_v2alpha1 async def sample_list_nodes(): @@ -323,6 +330,13 @@ async def get_node( .. 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 tpu_v2alpha1 async def sample_get_node(): @@ -416,6 +430,13 @@ async def create_node( .. 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 tpu_v2alpha1 async def sample_create_node(): @@ -543,6 +564,13 @@ async def delete_node( .. 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 tpu_v2alpha1 async def sample_delete_node(): @@ -651,6 +679,13 @@ async def stop_node( .. 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 tpu_v2alpha1 async def sample_stop_node(): @@ -738,6 +773,13 @@ async def start_node( .. 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 tpu_v2alpha1 async def sample_start_node(): @@ -827,6 +869,13 @@ async def update_node( .. 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 tpu_v2alpha1 async def sample_update_node(): @@ -952,6 +1001,13 @@ async def generate_service_identity( .. 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 tpu_v2alpha1 async def sample_generate_service_identity(): @@ -1026,6 +1082,13 @@ async def list_accelerator_types( .. 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 tpu_v2alpha1 async def sample_list_accelerator_types(): @@ -1132,6 +1195,13 @@ async def get_accelerator_type( .. 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 tpu_v2alpha1 async def sample_get_accelerator_type(): @@ -1225,6 +1295,13 @@ async def list_runtime_versions( .. 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 tpu_v2alpha1 async def sample_list_runtime_versions(): @@ -1331,6 +1408,13 @@ async def get_runtime_version( .. 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 tpu_v2alpha1 async def sample_get_runtime_version(): @@ -1423,6 +1507,13 @@ async def get_guest_attributes( .. 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 tpu_v2alpha1 async def sample_get_guest_attributes(): diff --git a/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/client.py b/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/client.py index a65e7d671255..bd15139a4375 100644 --- a/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/client.py +++ b/packages/google-cloud-tpu/google/cloud/tpu_v2alpha1/services/tpu/client.py @@ -490,6 +490,13 @@ def list_nodes( .. 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 tpu_v2alpha1 def sample_list_nodes(): @@ -596,6 +603,13 @@ def get_node( .. 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 tpu_v2alpha1 def sample_get_node(): @@ -689,6 +703,13 @@ def create_node( .. 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 tpu_v2alpha1 def sample_create_node(): @@ -816,6 +837,13 @@ def delete_node( .. 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 tpu_v2alpha1 def sample_delete_node(): @@ -924,6 +952,13 @@ def stop_node( .. 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 tpu_v2alpha1 def sample_stop_node(): @@ -1012,6 +1047,13 @@ def start_node( .. 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 tpu_v2alpha1 def sample_start_node(): @@ -1102,6 +1144,13 @@ def update_node( .. 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 tpu_v2alpha1 def sample_update_node(): @@ -1227,6 +1276,13 @@ def generate_service_identity( .. 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 tpu_v2alpha1 def sample_generate_service_identity(): @@ -1304,6 +1360,13 @@ def list_accelerator_types( .. 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 tpu_v2alpha1 def sample_list_accelerator_types(): @@ -1410,6 +1473,13 @@ def get_accelerator_type( .. 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 tpu_v2alpha1 def sample_get_accelerator_type(): @@ -1503,6 +1573,13 @@ def list_runtime_versions( .. 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 tpu_v2alpha1 def sample_list_runtime_versions(): @@ -1609,6 +1686,13 @@ def get_runtime_version( .. 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 tpu_v2alpha1 def sample_get_runtime_version(): @@ -1701,6 +1785,13 @@ def get_guest_attributes( .. 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 tpu_v2alpha1 def sample_get_guest_attributes(): diff --git a/packages/google-cloud-tpu/mypy.ini b/packages/google-cloud-tpu/mypy.ini index 4505b485436b..574c5aed394b 100644 --- a/packages/google-cloud-tpu/mypy.ini +++ b/packages/google-cloud-tpu/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.6 +python_version = 3.7 namespace_packages = True diff --git a/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v1.json b/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v1.json index dfabe461a73a..14bc4cc95639 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v1.json +++ b/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v1.json @@ -67,33 +67,33 @@ "regionTag": "tpu_v1_generated_Tpu_CreateNode_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" } ], @@ -155,33 +155,33 @@ "regionTag": "tpu_v1_generated_Tpu_CreateNode_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" } ], @@ -236,33 +236,33 @@ "regionTag": "tpu_v1_generated_Tpu_DeleteNode_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "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": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -316,33 +316,33 @@ "regionTag": "tpu_v1_generated_Tpu_DeleteNode_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "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": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -397,33 +397,33 @@ "regionTag": "tpu_v1_generated_Tpu_GetAcceleratorType_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" } ], @@ -477,33 +477,33 @@ "regionTag": "tpu_v1_generated_Tpu_GetAcceleratorType_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" } ], @@ -558,33 +558,33 @@ "regionTag": "tpu_v1_generated_Tpu_GetNode_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" } ], @@ -638,33 +638,33 @@ "regionTag": "tpu_v1_generated_Tpu_GetNode_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" } ], @@ -719,33 +719,33 @@ "regionTag": "tpu_v1_generated_Tpu_GetTensorFlowVersion_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" } ], @@ -799,33 +799,33 @@ "regionTag": "tpu_v1_generated_Tpu_GetTensorFlowVersion_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" } ], @@ -880,33 +880,33 @@ "regionTag": "tpu_v1_generated_Tpu_ListAcceleratorTypes_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -960,33 +960,33 @@ "regionTag": "tpu_v1_generated_Tpu_ListAcceleratorTypes_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1041,33 +1041,33 @@ "regionTag": "tpu_v1_generated_Tpu_ListNodes_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1121,33 +1121,33 @@ "regionTag": "tpu_v1_generated_Tpu_ListNodes_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1202,33 +1202,33 @@ "regionTag": "tpu_v1_generated_Tpu_ListTensorFlowVersions_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1282,33 +1282,33 @@ "regionTag": "tpu_v1_generated_Tpu_ListTensorFlowVersions_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1359,33 +1359,33 @@ "regionTag": "tpu_v1_generated_Tpu_ReimageNode_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1435,33 +1435,33 @@ "regionTag": "tpu_v1_generated_Tpu_ReimageNode_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1512,33 +1512,33 @@ "regionTag": "tpu_v1_generated_Tpu_StartNode_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1588,33 +1588,33 @@ "regionTag": "tpu_v1_generated_Tpu_StartNode_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1665,33 +1665,33 @@ "regionTag": "tpu_v1_generated_Tpu_StopNode_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1741,33 +1741,33 @@ "regionTag": "tpu_v1_generated_Tpu_StopNode_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], diff --git a/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v2alpha1.json b/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v2alpha1.json index b89070d6bf27..1b4d1f6f379b 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v2alpha1.json +++ b/packages/google-cloud-tpu/samples/generated_samples/snippet_metadata_tpu_v2alpha1.json @@ -67,33 +67,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_CreateNode_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" } ], @@ -155,33 +155,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_CreateNode_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" } ], @@ -236,33 +236,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_DeleteNode_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "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": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -316,33 +316,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_DeleteNode_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "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": 45, - "start": 39, + "end": 52, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -393,33 +393,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GenerateServiceIdentity_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" } ], @@ -469,33 +469,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GenerateServiceIdentity_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" } ], @@ -550,33 +550,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetAcceleratorType_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" } ], @@ -630,33 +630,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetAcceleratorType_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" } ], @@ -707,33 +707,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetGuestAttributes_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" } ], @@ -783,33 +783,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetGuestAttributes_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" } ], @@ -864,33 +864,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetNode_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" } ], @@ -944,33 +944,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetNode_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" } ], @@ -1025,33 +1025,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetRuntimeVersion_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" } ], @@ -1105,33 +1105,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_GetRuntimeVersion_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" } ], @@ -1186,33 +1186,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_ListAcceleratorTypes_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1266,33 +1266,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_ListAcceleratorTypes_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1347,33 +1347,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_ListNodes_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1427,33 +1427,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_ListNodes_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1508,33 +1508,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_ListRuntimeVersions_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1588,33 +1588,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_ListRuntimeVersions_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "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": 46, - "start": 42, + "end": 53, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -1665,33 +1665,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_StartNode_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1741,33 +1741,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_StartNode_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1818,33 +1818,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_StopNode_async", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1894,33 +1894,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_StopNode_sync", "segments": [ { - "end": 47, + "end": 54, "start": 27, "type": "FULL" }, { - "end": 47, + "end": 54, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 37, - "start": 34, + "end": 44, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 44, - "start": 38, + "end": 51, + "start": 45, "type": "REQUEST_EXECUTION" }, { - "end": 48, - "start": 45, + "end": 55, + "start": 52, "type": "RESPONSE_HANDLING" } ], @@ -1979,33 +1979,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_UpdateNode_async", "segments": [ { - "end": 52, + "end": 59, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 59, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 43, + "end": 56, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 60, + "start": 57, "type": "RESPONSE_HANDLING" } ], @@ -2063,33 +2063,33 @@ "regionTag": "tpu_v2alpha1_generated_Tpu_UpdateNode_sync", "segments": [ { - "end": 52, + "end": 59, "start": 27, "type": "FULL" }, { - "end": 52, + "end": 59, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 49, - "start": 43, + "end": 56, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 53, - "start": 50, + "end": 60, + "start": 57, "type": "RESPONSE_HANDLING" } ], diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_async.py index 2de3d0718f19..26cd844870e6 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_CreateNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_sync.py index ade26aec3b9f..bde5283c20f9 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_create_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_CreateNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_async.py index 2847585e2555..0a3eae6b6d1f 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_DeleteNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_sync.py index 1070e1afd8ba..7a59a8bba718 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_delete_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_DeleteNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_async.py index b01aed428f6f..492e949fc3cd 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_GetAcceleratorType_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_sync.py index 6963b6b5f105..e21334c21a65 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_accelerator_type_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_GetAcceleratorType_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_async.py index f111d32436ea..84957337d8fd 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_GetNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_sync.py index e1aa31e9d4de..397cacb5d56e 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_GetNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_async.py index 9af5036f79d0..23cc71ed8be8 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_GetTensorFlowVersion_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_sync.py index c84a941e740c..34fa6eea8341 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_get_tensor_flow_version_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_GetTensorFlowVersion_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_async.py index 64804fe22ed1..ae5bd5fbe445 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ListAcceleratorTypes_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_sync.py index 38e2fae725b2..b89bba3ec01d 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_accelerator_types_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ListAcceleratorTypes_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_async.py index 06f7f5f06252..fa5ea2e1cbed 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ListNodes_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_sync.py index 85c22fd307b7..42a58e5ab22e 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_nodes_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ListNodes_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_async.py index b5535b49bf5e..54cf7b3dbb83 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ListTensorFlowVersions_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_sync.py index c8782289033d..9f3267ac3c13 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_list_tensor_flow_versions_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ListTensorFlowVersions_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_async.py index 7f2b76dde59f..a19f27082ff0 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ReimageNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_sync.py index 85dda57f8b39..b2e5c9b39b4a 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_reimage_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_ReimageNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_async.py index fce1cd4c6293..05dfccdba81d 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_StartNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_sync.py index d2447bb5d3be..61750aa2844b 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_start_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_StartNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_async.py index 4641af52161d..83e422cdf579 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_StopNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_sync.py index a1c106d7052e..8f42e5824500 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v1_generated_tpu_stop_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v1_generated_Tpu_StopNode_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 tpu_v1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_async.py index 166796e08b10..64183319559d 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_CreateNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_sync.py index a7ffe8d02907..81477a8ff82d 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_create_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_CreateNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_async.py index 780e81733961..bdb67e65fb68 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_DeleteNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_sync.py index f3c4be1913ea..0442c52accbc 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_delete_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_DeleteNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_async.py index 182a14b150ee..43487a32decf 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GenerateServiceIdentity_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_sync.py index cdb7af7c89b4..35d9e14817b1 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_generate_service_identity_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GenerateServiceIdentity_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_async.py index ae0a2ce9a1f2..e74994544c71 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetAcceleratorType_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_sync.py index 6a340fa214fa..36505a9c1957 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_accelerator_type_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetAcceleratorType_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_async.py index 82bbb665c812..25bdf2bce6c7 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetGuestAttributes_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_sync.py index ab19006a8809..6ed032c50d6f 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_guest_attributes_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetGuestAttributes_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_async.py index 60286cd6f4a5..3f13f3215387 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_sync.py index a328bf2de45d..c5a09b98079a 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_async.py index eed795b1c3c2..b019058f4cd3 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetRuntimeVersion_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_sync.py index d96cada48d5c..3b27cff9f150 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_get_runtime_version_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_GetRuntimeVersion_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_async.py index b8593fd40450..15bce5ac43d5 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_ListAcceleratorTypes_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_sync.py index 3d7b42465aaa..7ece28517e89 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_accelerator_types_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_ListAcceleratorTypes_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_async.py index c2695cd7e7f6..3810458d1a12 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_ListNodes_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_sync.py index c48ba892066e..7c1720f2420f 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_nodes_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_ListNodes_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_async.py index ac9cb33ade93..86aa8afe9775 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_ListRuntimeVersions_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_sync.py index 0fb9cf8603d1..f5771751e5ff 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_list_runtime_versions_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_ListRuntimeVersions_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_async.py index e72ebba7efbf..488bdbfa284c 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_StartNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_sync.py index b81e6b7ac715..511c7f1ed367 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_start_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_StartNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_async.py index a4273fcb864f..ad8feb2bafaf 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_StopNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_sync.py index bd9017a1b4d6..5ab2b0b5d189 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_stop_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_StopNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_async.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_async.py index 36a35f4c7a65..b5e4ff38633d 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_async.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_async.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_UpdateNode_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 tpu_v2alpha1 diff --git a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_sync.py b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_sync.py index b99b0de651b1..8ce1b02f51d1 100644 --- a/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_sync.py +++ b/packages/google-cloud-tpu/samples/generated_samples/tpu_v2alpha1_generated_tpu_update_node_sync.py @@ -24,6 +24,13 @@ # [START tpu_v2alpha1_generated_Tpu_UpdateNode_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 tpu_v2alpha1