Skip to content
This repository was archived by the owner on Feb 1, 2024. It is now read-only.

Commit 4247d97

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#301)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: googleapis/googleapis@332ecf5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4313d682880fd9d7247291164d4e9d3d5bd9f177 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9
1 parent 82a4c29 commit 4247d97

File tree

114 files changed

+2481
-1025
lines changed

Some content is hidden

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

114 files changed

+2481
-1025
lines changed

google/cloud/tasks_v2/services/cloud_tasks/async_client.py

Lines changed: 113 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@ async def list_queues(
226226
227227
.. code-block:: python
228228
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
229236
from google.cloud import tasks_v2
230237
231238
async def sample_list_queues():
@@ -344,6 +351,13 @@ async def get_queue(
344351
345352
.. code-block:: python
346353
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
347361
from google.cloud import tasks_v2
348362
349363
async def sample_get_queue():
@@ -464,6 +478,13 @@ async def create_queue(
464478
465479
.. code-block:: python
466480
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
467488
from google.cloud import tasks_v2
468489
469490
async def sample_create_queue():
@@ -593,6 +614,13 @@ async def update_queue(
593614
594615
.. code-block:: python
595616
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
596624
from google.cloud import tasks_v2
597625
598626
async def sample_update_queue():
@@ -723,6 +751,13 @@ async def delete_queue(
723751
724752
.. code-block:: python
725753
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
726761
from google.cloud import tasks_v2
727762
728763
async def sample_delete_queue():
@@ -821,6 +856,13 @@ async def purge_queue(
821856
822857
.. code-block:: python
823858
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
824866
from google.cloud import tasks_v2
825867
826868
async def sample_purge_queue():
@@ -927,6 +969,13 @@ async def pause_queue(
927969
928970
.. code-block:: python
929971
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
930979
from google.cloud import tasks_v2
931980
932981
async def sample_pause_queue():
@@ -1040,6 +1089,13 @@ async def resume_queue(
10401089
10411090
.. code-block:: python
10421091
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
10431099
from google.cloud import tasks_v2
10441100
10451101
async def sample_resume_queue():
@@ -1147,6 +1203,13 @@ async def get_iam_policy(
11471203
11481204
.. code-block:: python
11491205
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
11501213
from google.cloud import tasks_v2
11511214
from google.iam.v1 import iam_policy_pb2 # type: ignore
11521215
@@ -1328,6 +1391,13 @@ async def set_iam_policy(
13281391
13291392
.. code-block:: python
13301393
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
13311401
from google.cloud import tasks_v2
13321402
from google.iam.v1 import iam_policy_pb2 # type: ignore
13331403
@@ -1496,6 +1566,13 @@ async def test_iam_permissions(
14961566
14971567
.. code-block:: python
14981568
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
14991576
from google.cloud import tasks_v2
15001577
from google.iam.v1 import iam_policy_pb2 # type: ignore
15011578
@@ -1506,7 +1583,7 @@ async def sample_test_iam_permissions():
15061583
# Initialize request argument(s)
15071584
request = iam_policy_pb2.TestIamPermissionsRequest(
15081585
resource="resource_value",
1509-
permissions=['permissions_value_1', 'permissions_value_2'],
1586+
permissions=['permissions_value1', 'permissions_value2'],
15101587
)
15111588
15121589
# Make the request
@@ -1624,6 +1701,13 @@ async def list_tasks(
16241701
16251702
.. code-block:: python
16261703
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
16271711
from google.cloud import tasks_v2
16281712
16291713
async def sample_list_tasks():
@@ -1743,6 +1827,13 @@ async def get_task(
17431827
17441828
.. code-block:: python
17451829
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
17461837
from google.cloud import tasks_v2
17471838
17481839
async def sample_get_task():
@@ -1853,6 +1944,13 @@ async def create_task(
18531944
18541945
.. code-block:: python
18551946
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
18561954
from google.cloud import tasks_v2
18571955
18581956
async def sample_create_task():
@@ -1999,6 +2097,13 @@ async def delete_task(
19992097
20002098
.. code-block:: python
20012099
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
20022107
from google.cloud import tasks_v2
20032108
20042109
async def sample_delete_task():
@@ -2119,6 +2224,13 @@ async def run_task(
21192224
21202225
.. code-block:: python
21212226
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
21222234
from google.cloud import tasks_v2
21232235
21242236
async def sample_run_task():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy