Skip to content

Commit f5a8c1b

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

17 files changed

+233
-93
lines changed

packages/google-cloud-trace/google/cloud/trace_v1/services/trace_service/async_client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ async def list_traces(
216216
217217
.. code-block:: python
218218
219+
# This snippet has been automatically generated and should be regarded as a
220+
# code template only.
221+
# It will require modifications to work:
222+
# - It may require correct/in-range values for request initialization.
223+
# - It may require specifying regional endpoints when creating the service
224+
# client as shown in:
225+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
219226
from google.cloud import trace_v1
220227
221228
async def sample_list_traces():
@@ -337,6 +344,13 @@ async def get_trace(
337344
338345
.. code-block:: python
339346
347+
# This snippet has been automatically generated and should be regarded as a
348+
# code template only.
349+
# It will require modifications to work:
350+
# - It may require correct/in-range values for request initialization.
351+
# - It may require specifying regional endpoints when creating the service
352+
# client as shown in:
353+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
340354
from google.cloud import trace_v1
341355
342356
async def sample_get_trace():
@@ -465,6 +479,13 @@ async def patch_traces(
465479
466480
.. code-block:: python
467481
482+
# This snippet has been automatically generated and should be regarded as a
483+
# code template only.
484+
# It will require modifications to work:
485+
# - It may require correct/in-range values for request initialization.
486+
# - It may require specifying regional endpoints when creating the service
487+
# client as shown in:
488+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
468489
from google.cloud import trace_v1
469490
470491
async def sample_patch_traces():

packages/google-cloud-trace/google/cloud/trace_v1/services/trace_service/client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,13 @@ def list_traces(
423423
424424
.. code-block:: python
425425
426+
# This snippet has been automatically generated and should be regarded as a
427+
# code template only.
428+
# It will require modifications to work:
429+
# - It may require correct/in-range values for request initialization.
430+
# - It may require specifying regional endpoints when creating the service
431+
# client as shown in:
432+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
426433
from google.cloud import trace_v1
427434
428435
def sample_list_traces():
@@ -534,6 +541,13 @@ def get_trace(
534541
535542
.. code-block:: python
536543
544+
# This snippet has been automatically generated and should be regarded as a
545+
# code template only.
546+
# It will require modifications to work:
547+
# - It may require correct/in-range values for request initialization.
548+
# - It may require specifying regional endpoints when creating the service
549+
# client as shown in:
550+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
537551
from google.cloud import trace_v1
538552
539553
def sample_get_trace():
@@ -652,6 +666,13 @@ def patch_traces(
652666
653667
.. code-block:: python
654668
669+
# This snippet has been automatically generated and should be regarded as a
670+
# code template only.
671+
# It will require modifications to work:
672+
# - It may require correct/in-range values for request initialization.
673+
# - It may require specifying regional endpoints when creating the service
674+
# client as shown in:
675+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
655676
from google.cloud import trace_v1
656677
657678
def sample_patch_traces():

packages/google-cloud-trace/google/cloud/trace_v2/services/trace_service/async_client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,13 @@ async def batch_write_spans(
222222
223223
.. code-block:: python
224224
225+
# This snippet has been automatically generated and should be regarded as a
226+
# code template only.
227+
# It will require modifications to work:
228+
# - It may require correct/in-range values for request initialization.
229+
# - It may require specifying regional endpoints when creating the service
230+
# client as shown in:
231+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
225232
from google.cloud import trace_v2
226233
227234
async def sample_batch_write_spans():
@@ -319,6 +326,13 @@ async def create_span(
319326
320327
.. code-block:: python
321328
329+
# This snippet has been automatically generated and should be regarded as a
330+
# code template only.
331+
# It will require modifications to work:
332+
# - It may require correct/in-range values for request initialization.
333+
# - It may require specifying regional endpoints when creating the service
334+
# client as shown in:
335+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
322336
from google.cloud import trace_v2
323337
324338
async def sample_create_span():

packages/google-cloud-trace/google/cloud/trace_v2/services/trace_service/client.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,13 @@ def batch_write_spans(
449449
450450
.. code-block:: python
451451
452+
# This snippet has been automatically generated and should be regarded as a
453+
# code template only.
454+
# It will require modifications to work:
455+
# - It may require correct/in-range values for request initialization.
456+
# - It may require specifying regional endpoints when creating the service
457+
# client as shown in:
458+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
452459
from google.cloud import trace_v2
453460
454461
def sample_batch_write_spans():
@@ -546,6 +553,13 @@ def create_span(
546553
547554
.. code-block:: python
548555
556+
# This snippet has been automatically generated and should be regarded as a
557+
# code template only.
558+
# It will require modifications to work:
559+
# - It may require correct/in-range values for request initialization.
560+
# - It may require specifying regional endpoints when creating the service
561+
# client as shown in:
562+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
549563
from google.cloud import trace_v2
550564
551565
def sample_create_span():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[mypy]
2-
python_version = 3.6
2+
python_version = 3.7
33
namespace_packages = True

packages/google-cloud-trace/samples/generated_samples/cloudtrace_v1_generated_trace_service_get_trace_async.py

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

2525

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

2936

packages/google-cloud-trace/samples/generated_samples/cloudtrace_v1_generated_trace_service_get_trace_sync.py

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

2525

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

2936

packages/google-cloud-trace/samples/generated_samples/cloudtrace_v1_generated_trace_service_list_traces_async.py

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

2525

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

2936

packages/google-cloud-trace/samples/generated_samples/cloudtrace_v1_generated_trace_service_list_traces_sync.py

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

2525

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

2936

packages/google-cloud-trace/samples/generated_samples/cloudtrace_v1_generated_trace_service_patch_traces_async.py

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

2525

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

2936

0 commit comments

Comments
 (0)