Skip to content

Commit baa81f3

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

31 files changed

Lines changed: 577 additions & 241 deletions

File tree

packages/google-cloud-batch/google/cloud/batch_v1/services/batch_service/async_client.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ async def create_job(
231231
232232
.. code-block:: python
233233
234+
# This snippet has been automatically generated and should be regarded as a
235+
# code template only.
236+
# It will require modifications to work:
237+
# - It may require correct/in-range values for request initialization.
238+
# - It may require specifying regional endpoints when creating the service
239+
# client as shown in:
240+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
234241
from google.cloud import batch_v1
235242
236243
async def sample_create_job():
@@ -348,6 +355,13 @@ async def get_job(
348355
349356
.. code-block:: python
350357
358+
# This snippet has been automatically generated and should be regarded as a
359+
# code template only.
360+
# It will require modifications to work:
361+
# - It may require correct/in-range values for request initialization.
362+
# - It may require specifying regional endpoints when creating the service
363+
# client as shown in:
364+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
351365
from google.cloud import batch_v1
352366
353367
async def sample_get_job():
@@ -447,6 +461,13 @@ async def delete_job(
447461
448462
.. code-block:: python
449463
464+
# This snippet has been automatically generated and should be regarded as a
465+
# code template only.
466+
# It will require modifications to work:
467+
# - It may require correct/in-range values for request initialization.
468+
# - It may require specifying regional endpoints when creating the service
469+
# client as shown in:
470+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
450471
from google.cloud import batch_v1
451472
452473
async def sample_delete_job():
@@ -560,6 +581,13 @@ async def list_jobs(
560581
561582
.. code-block:: python
562583
584+
# This snippet has been automatically generated and should be regarded as a
585+
# code template only.
586+
# It will require modifications to work:
587+
# - It may require correct/in-range values for request initialization.
588+
# - It may require specifying regional endpoints when creating the service
589+
# client as shown in:
590+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
563591
from google.cloud import batch_v1
564592
565593
async def sample_list_jobs():
@@ -672,6 +700,13 @@ async def get_task(
672700
673701
.. code-block:: python
674702
703+
# This snippet has been automatically generated and should be regarded as a
704+
# code template only.
705+
# It will require modifications to work:
706+
# - It may require correct/in-range values for request initialization.
707+
# - It may require specifying regional endpoints when creating the service
708+
# client as shown in:
709+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
675710
from google.cloud import batch_v1
676711
677712
async def sample_get_task():
@@ -771,6 +806,13 @@ async def list_tasks(
771806
772807
.. code-block:: python
773808
809+
# This snippet has been automatically generated and should be regarded as a
810+
# code template only.
811+
# It will require modifications to work:
812+
# - It may require correct/in-range values for request initialization.
813+
# - It may require specifying regional endpoints when creating the service
814+
# client as shown in:
815+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
774816
from google.cloud import batch_v1
775817
776818
async def sample_list_tasks():

packages/google-cloud-batch/google/cloud/batch_v1/services/batch_service/client.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,13 @@ def create_job(
504504
505505
.. code-block:: python
506506
507+
# This snippet has been automatically generated and should be regarded as a
508+
# code template only.
509+
# It will require modifications to work:
510+
# - It may require correct/in-range values for request initialization.
511+
# - It may require specifying regional endpoints when creating the service
512+
# client as shown in:
513+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
507514
from google.cloud import batch_v1
508515
509516
def sample_create_job():
@@ -621,6 +628,13 @@ def get_job(
621628
622629
.. code-block:: python
623630
631+
# This snippet has been automatically generated and should be regarded as a
632+
# code template only.
633+
# It will require modifications to work:
634+
# - It may require correct/in-range values for request initialization.
635+
# - It may require specifying regional endpoints when creating the service
636+
# client as shown in:
637+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
624638
from google.cloud import batch_v1
625639
626640
def sample_get_job():
@@ -711,6 +725,13 @@ def delete_job(
711725
712726
.. code-block:: python
713727
728+
# This snippet has been automatically generated and should be regarded as a
729+
# code template only.
730+
# It will require modifications to work:
731+
# - It may require correct/in-range values for request initialization.
732+
# - It may require specifying regional endpoints when creating the service
733+
# client as shown in:
734+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
714735
from google.cloud import batch_v1
715736
716737
def sample_delete_job():
@@ -824,6 +845,13 @@ def list_jobs(
824845
825846
.. code-block:: python
826847
848+
# This snippet has been automatically generated and should be regarded as a
849+
# code template only.
850+
# It will require modifications to work:
851+
# - It may require correct/in-range values for request initialization.
852+
# - It may require specifying regional endpoints when creating the service
853+
# client as shown in:
854+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
827855
from google.cloud import batch_v1
828856
829857
def sample_list_jobs():
@@ -927,6 +955,13 @@ def get_task(
927955
928956
.. code-block:: python
929957
958+
# This snippet has been automatically generated and should be regarded as a
959+
# code template only.
960+
# It will require modifications to work:
961+
# - It may require correct/in-range values for request initialization.
962+
# - It may require specifying regional endpoints when creating the service
963+
# client as shown in:
964+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
930965
from google.cloud import batch_v1
931966
932967
def sample_get_task():
@@ -1017,6 +1052,13 @@ def list_tasks(
10171052
10181053
.. code-block:: python
10191054
1055+
# This snippet has been automatically generated and should be regarded as a
1056+
# code template only.
1057+
# It will require modifications to work:
1058+
# - It may require correct/in-range values for request initialization.
1059+
# - It may require specifying regional endpoints when creating the service
1060+
# client as shown in:
1061+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10201062
from google.cloud import batch_v1
10211063
10221064
def sample_list_tasks():

packages/google-cloud-batch/google/cloud/batch_v1alpha/services/batch_service/async_client.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ async def create_job(
231231
232232
.. code-block:: python
233233
234+
# This snippet has been automatically generated and should be regarded as a
235+
# code template only.
236+
# It will require modifications to work:
237+
# - It may require correct/in-range values for request initialization.
238+
# - It may require specifying regional endpoints when creating the service
239+
# client as shown in:
240+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
234241
from google.cloud import batch_v1alpha
235242
236243
async def sample_create_job():
@@ -348,6 +355,13 @@ async def get_job(
348355
349356
.. code-block:: python
350357
358+
# This snippet has been automatically generated and should be regarded as a
359+
# code template only.
360+
# It will require modifications to work:
361+
# - It may require correct/in-range values for request initialization.
362+
# - It may require specifying regional endpoints when creating the service
363+
# client as shown in:
364+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
351365
from google.cloud import batch_v1alpha
352366
353367
async def sample_get_job():
@@ -447,6 +461,13 @@ async def delete_job(
447461
448462
.. code-block:: python
449463
464+
# This snippet has been automatically generated and should be regarded as a
465+
# code template only.
466+
# It will require modifications to work:
467+
# - It may require correct/in-range values for request initialization.
468+
# - It may require specifying regional endpoints when creating the service
469+
# client as shown in:
470+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
450471
from google.cloud import batch_v1alpha
451472
452473
async def sample_delete_job():
@@ -560,6 +581,13 @@ async def list_jobs(
560581
561582
.. code-block:: python
562583
584+
# This snippet has been automatically generated and should be regarded as a
585+
# code template only.
586+
# It will require modifications to work:
587+
# - It may require correct/in-range values for request initialization.
588+
# - It may require specifying regional endpoints when creating the service
589+
# client as shown in:
590+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
563591
from google.cloud import batch_v1alpha
564592
565593
async def sample_list_jobs():
@@ -672,6 +700,13 @@ async def get_task(
672700
673701
.. code-block:: python
674702
703+
# This snippet has been automatically generated and should be regarded as a
704+
# code template only.
705+
# It will require modifications to work:
706+
# - It may require correct/in-range values for request initialization.
707+
# - It may require specifying regional endpoints when creating the service
708+
# client as shown in:
709+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
675710
from google.cloud import batch_v1alpha
676711
677712
async def sample_get_task():
@@ -771,6 +806,13 @@ async def list_tasks(
771806
772807
.. code-block:: python
773808
809+
# This snippet has been automatically generated and should be regarded as a
810+
# code template only.
811+
# It will require modifications to work:
812+
# - It may require correct/in-range values for request initialization.
813+
# - It may require specifying regional endpoints when creating the service
814+
# client as shown in:
815+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
774816
from google.cloud import batch_v1alpha
775817
776818
async def sample_list_tasks():

packages/google-cloud-batch/google/cloud/batch_v1alpha/services/batch_service/client.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,13 @@ def create_job(
504504
505505
.. code-block:: python
506506
507+
# This snippet has been automatically generated and should be regarded as a
508+
# code template only.
509+
# It will require modifications to work:
510+
# - It may require correct/in-range values for request initialization.
511+
# - It may require specifying regional endpoints when creating the service
512+
# client as shown in:
513+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
507514
from google.cloud import batch_v1alpha
508515
509516
def sample_create_job():
@@ -621,6 +628,13 @@ def get_job(
621628
622629
.. code-block:: python
623630
631+
# This snippet has been automatically generated and should be regarded as a
632+
# code template only.
633+
# It will require modifications to work:
634+
# - It may require correct/in-range values for request initialization.
635+
# - It may require specifying regional endpoints when creating the service
636+
# client as shown in:
637+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
624638
from google.cloud import batch_v1alpha
625639
626640
def sample_get_job():
@@ -711,6 +725,13 @@ def delete_job(
711725
712726
.. code-block:: python
713727
728+
# This snippet has been automatically generated and should be regarded as a
729+
# code template only.
730+
# It will require modifications to work:
731+
# - It may require correct/in-range values for request initialization.
732+
# - It may require specifying regional endpoints when creating the service
733+
# client as shown in:
734+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
714735
from google.cloud import batch_v1alpha
715736
716737
def sample_delete_job():
@@ -824,6 +845,13 @@ def list_jobs(
824845
825846
.. code-block:: python
826847
848+
# This snippet has been automatically generated and should be regarded as a
849+
# code template only.
850+
# It will require modifications to work:
851+
# - It may require correct/in-range values for request initialization.
852+
# - It may require specifying regional endpoints when creating the service
853+
# client as shown in:
854+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
827855
from google.cloud import batch_v1alpha
828856
829857
def sample_list_jobs():
@@ -927,6 +955,13 @@ def get_task(
927955
928956
.. code-block:: python
929957
958+
# This snippet has been automatically generated and should be regarded as a
959+
# code template only.
960+
# It will require modifications to work:
961+
# - It may require correct/in-range values for request initialization.
962+
# - It may require specifying regional endpoints when creating the service
963+
# client as shown in:
964+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
930965
from google.cloud import batch_v1alpha
931966
932967
def sample_get_task():
@@ -1017,6 +1052,13 @@ def list_tasks(
10171052
10181053
.. code-block:: python
10191054
1055+
# This snippet has been automatically generated and should be regarded as a
1056+
# code template only.
1057+
# It will require modifications to work:
1058+
# - It may require correct/in-range values for request initialization.
1059+
# - It may require specifying regional endpoints when creating the service
1060+
# client as shown in:
1061+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10201062
from google.cloud import batch_v1alpha
10211063
10221064
def sample_list_tasks():
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-batch/samples/generated_samples/batch_v1_generated_batch_service_create_job_async.py

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

2525

2626
# [START batch_v1_generated_BatchService_CreateJob_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 batch_v1
2835

2936

packages/google-cloud-batch/samples/generated_samples/batch_v1_generated_batch_service_create_job_sync.py

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

2525

2626
# [START batch_v1_generated_BatchService_CreateJob_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 batch_v1
2835

2936

packages/google-cloud-batch/samples/generated_samples/batch_v1_generated_batch_service_delete_job_async.py

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

2525

2626
# [START batch_v1_generated_BatchService_DeleteJob_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 batch_v1
2835

2936

packages/google-cloud-batch/samples/generated_samples/batch_v1_generated_batch_service_delete_job_sync.py

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

2525

2626
# [START batch_v1_generated_BatchService_DeleteJob_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 batch_v1
2835

2936

0 commit comments

Comments
 (0)