@@ -226,6 +226,13 @@ async def list_queues(
226
226
227
227
.. code-block:: python
228
228
229
+ # This snippet has been automatically generated and should be regarded as a
230
+ # code template only.
231
+ # It will require modifications to work:
232
+ # - It may require correct/in-range values for request initialization.
233
+ # - It may require specifying regional endpoints when creating the service
234
+ # client as shown in:
235
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
229
236
from google.cloud import tasks_v2
230
237
231
238
async def sample_list_queues():
@@ -344,6 +351,13 @@ async def get_queue(
344
351
345
352
.. code-block:: python
346
353
354
+ # This snippet has been automatically generated and should be regarded as a
355
+ # code template only.
356
+ # It will require modifications to work:
357
+ # - It may require correct/in-range values for request initialization.
358
+ # - It may require specifying regional endpoints when creating the service
359
+ # client as shown in:
360
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
347
361
from google.cloud import tasks_v2
348
362
349
363
async def sample_get_queue():
@@ -464,6 +478,13 @@ async def create_queue(
464
478
465
479
.. code-block:: python
466
480
481
+ # This snippet has been automatically generated and should be regarded as a
482
+ # code template only.
483
+ # It will require modifications to work:
484
+ # - It may require correct/in-range values for request initialization.
485
+ # - It may require specifying regional endpoints when creating the service
486
+ # client as shown in:
487
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
467
488
from google.cloud import tasks_v2
468
489
469
490
async def sample_create_queue():
@@ -593,6 +614,13 @@ async def update_queue(
593
614
594
615
.. code-block:: python
595
616
617
+ # This snippet has been automatically generated and should be regarded as a
618
+ # code template only.
619
+ # It will require modifications to work:
620
+ # - It may require correct/in-range values for request initialization.
621
+ # - It may require specifying regional endpoints when creating the service
622
+ # client as shown in:
623
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
596
624
from google.cloud import tasks_v2
597
625
598
626
async def sample_update_queue():
@@ -723,6 +751,13 @@ async def delete_queue(
723
751
724
752
.. code-block:: python
725
753
754
+ # This snippet has been automatically generated and should be regarded as a
755
+ # code template only.
756
+ # It will require modifications to work:
757
+ # - It may require correct/in-range values for request initialization.
758
+ # - It may require specifying regional endpoints when creating the service
759
+ # client as shown in:
760
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
726
761
from google.cloud import tasks_v2
727
762
728
763
async def sample_delete_queue():
@@ -821,6 +856,13 @@ async def purge_queue(
821
856
822
857
.. code-block:: python
823
858
859
+ # This snippet has been automatically generated and should be regarded as a
860
+ # code template only.
861
+ # It will require modifications to work:
862
+ # - It may require correct/in-range values for request initialization.
863
+ # - It may require specifying regional endpoints when creating the service
864
+ # client as shown in:
865
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
824
866
from google.cloud import tasks_v2
825
867
826
868
async def sample_purge_queue():
@@ -927,6 +969,13 @@ async def pause_queue(
927
969
928
970
.. code-block:: python
929
971
972
+ # This snippet has been automatically generated and should be regarded as a
973
+ # code template only.
974
+ # It will require modifications to work:
975
+ # - It may require correct/in-range values for request initialization.
976
+ # - It may require specifying regional endpoints when creating the service
977
+ # client as shown in:
978
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
930
979
from google.cloud import tasks_v2
931
980
932
981
async def sample_pause_queue():
@@ -1040,6 +1089,13 @@ async def resume_queue(
1040
1089
1041
1090
.. code-block:: python
1042
1091
1092
+ # This snippet has been automatically generated and should be regarded as a
1093
+ # code template only.
1094
+ # It will require modifications to work:
1095
+ # - It may require correct/in-range values for request initialization.
1096
+ # - It may require specifying regional endpoints when creating the service
1097
+ # client as shown in:
1098
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1043
1099
from google.cloud import tasks_v2
1044
1100
1045
1101
async def sample_resume_queue():
@@ -1147,6 +1203,13 @@ async def get_iam_policy(
1147
1203
1148
1204
.. code-block:: python
1149
1205
1206
+ # This snippet has been automatically generated and should be regarded as a
1207
+ # code template only.
1208
+ # It will require modifications to work:
1209
+ # - It may require correct/in-range values for request initialization.
1210
+ # - It may require specifying regional endpoints when creating the service
1211
+ # client as shown in:
1212
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1150
1213
from google.cloud import tasks_v2
1151
1214
from google.iam.v1 import iam_policy_pb2 # type: ignore
1152
1215
@@ -1328,6 +1391,13 @@ async def set_iam_policy(
1328
1391
1329
1392
.. code-block:: python
1330
1393
1394
+ # This snippet has been automatically generated and should be regarded as a
1395
+ # code template only.
1396
+ # It will require modifications to work:
1397
+ # - It may require correct/in-range values for request initialization.
1398
+ # - It may require specifying regional endpoints when creating the service
1399
+ # client as shown in:
1400
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1331
1401
from google.cloud import tasks_v2
1332
1402
from google.iam.v1 import iam_policy_pb2 # type: ignore
1333
1403
@@ -1496,6 +1566,13 @@ async def test_iam_permissions(
1496
1566
1497
1567
.. code-block:: python
1498
1568
1569
+ # This snippet has been automatically generated and should be regarded as a
1570
+ # code template only.
1571
+ # It will require modifications to work:
1572
+ # - It may require correct/in-range values for request initialization.
1573
+ # - It may require specifying regional endpoints when creating the service
1574
+ # client as shown in:
1575
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1499
1576
from google.cloud import tasks_v2
1500
1577
from google.iam.v1 import iam_policy_pb2 # type: ignore
1501
1578
@@ -1506,7 +1583,7 @@ async def sample_test_iam_permissions():
1506
1583
# Initialize request argument(s)
1507
1584
request = iam_policy_pb2.TestIamPermissionsRequest(
1508
1585
resource="resource_value",
1509
- permissions=['permissions_value_1 ', 'permissions_value_2 '],
1586
+ permissions=['permissions_value1 ', 'permissions_value2 '],
1510
1587
)
1511
1588
1512
1589
# Make the request
@@ -1624,6 +1701,13 @@ async def list_tasks(
1624
1701
1625
1702
.. code-block:: python
1626
1703
1704
+ # This snippet has been automatically generated and should be regarded as a
1705
+ # code template only.
1706
+ # It will require modifications to work:
1707
+ # - It may require correct/in-range values for request initialization.
1708
+ # - It may require specifying regional endpoints when creating the service
1709
+ # client as shown in:
1710
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1627
1711
from google.cloud import tasks_v2
1628
1712
1629
1713
async def sample_list_tasks():
@@ -1743,6 +1827,13 @@ async def get_task(
1743
1827
1744
1828
.. code-block:: python
1745
1829
1830
+ # This snippet has been automatically generated and should be regarded as a
1831
+ # code template only.
1832
+ # It will require modifications to work:
1833
+ # - It may require correct/in-range values for request initialization.
1834
+ # - It may require specifying regional endpoints when creating the service
1835
+ # client as shown in:
1836
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1746
1837
from google.cloud import tasks_v2
1747
1838
1748
1839
async def sample_get_task():
@@ -1853,6 +1944,13 @@ async def create_task(
1853
1944
1854
1945
.. code-block:: python
1855
1946
1947
+ # This snippet has been automatically generated and should be regarded as a
1948
+ # code template only.
1949
+ # It will require modifications to work:
1950
+ # - It may require correct/in-range values for request initialization.
1951
+ # - It may require specifying regional endpoints when creating the service
1952
+ # client as shown in:
1953
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1856
1954
from google.cloud import tasks_v2
1857
1955
1858
1956
async def sample_create_task():
@@ -1999,6 +2097,13 @@ async def delete_task(
1999
2097
2000
2098
.. code-block:: python
2001
2099
2100
+ # This snippet has been automatically generated and should be regarded as a
2101
+ # code template only.
2102
+ # It will require modifications to work:
2103
+ # - It may require correct/in-range values for request initialization.
2104
+ # - It may require specifying regional endpoints when creating the service
2105
+ # client as shown in:
2106
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
2002
2107
from google.cloud import tasks_v2
2003
2108
2004
2109
async def sample_delete_task():
@@ -2119,6 +2224,13 @@ async def run_task(
2119
2224
2120
2225
.. code-block:: python
2121
2226
2227
+ # This snippet has been automatically generated and should be regarded as a
2228
+ # code template only.
2229
+ # It will require modifications to work:
2230
+ # - It may require correct/in-range values for request initialization.
2231
+ # - It may require specifying regional endpoints when creating the service
2232
+ # client as shown in:
2233
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
2122
2234
from google.cloud import tasks_v2
2123
2235
2124
2236
async def sample_run_task():
0 commit comments