@@ -239,6 +239,13 @@ async def list_functions(
239
239
240
240
.. code-block:: python
241
241
242
+ # This snippet has been automatically generated and should be regarded as a
243
+ # code template only.
244
+ # It will require modifications to work:
245
+ # - It may require correct/in-range values for request initialization.
246
+ # - It may require specifying regional endpoints when creating the service
247
+ # client as shown in:
248
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
242
249
from google.cloud import functions_v1
243
250
244
251
async def sample_list_functions():
@@ -335,6 +342,13 @@ async def get_function(
335
342
336
343
.. code-block:: python
337
344
345
+ # This snippet has been automatically generated and should be regarded as a
346
+ # code template only.
347
+ # It will require modifications to work:
348
+ # - It may require correct/in-range values for request initialization.
349
+ # - It may require specifying regional endpoints when creating the service
350
+ # client as shown in:
351
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
338
352
from google.cloud import functions_v1
339
353
340
354
async def sample_get_function():
@@ -445,6 +459,13 @@ async def create_function(
445
459
446
460
.. code-block:: python
447
461
462
+ # This snippet has been automatically generated and should be regarded as a
463
+ # code template only.
464
+ # It will require modifications to work:
465
+ # - It may require correct/in-range values for request initialization.
466
+ # - It may require specifying regional endpoints when creating the service
467
+ # client as shown in:
468
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
448
469
from google.cloud import functions_v1
449
470
450
471
async def sample_create_function():
@@ -567,6 +588,13 @@ async def update_function(
567
588
568
589
.. code-block:: python
569
590
591
+ # This snippet has been automatically generated and should be regarded as a
592
+ # code template only.
593
+ # It will require modifications to work:
594
+ # - It may require correct/in-range values for request initialization.
595
+ # - It may require specifying regional endpoints when creating the service
596
+ # client as shown in:
597
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
570
598
from google.cloud import functions_v1
571
599
572
600
async def sample_update_function():
@@ -695,6 +723,13 @@ async def delete_function(
695
723
696
724
.. code-block:: python
697
725
726
+ # This snippet has been automatically generated and should be regarded as a
727
+ # code template only.
728
+ # It will require modifications to work:
729
+ # - It may require correct/in-range values for request initialization.
730
+ # - It may require specifying regional endpoints when creating the service
731
+ # client as shown in:
732
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
698
733
from google.cloud import functions_v1
699
734
700
735
async def sample_delete_function():
@@ -826,6 +861,13 @@ async def call_function(
826
861
827
862
.. code-block:: python
828
863
864
+ # This snippet has been automatically generated and should be regarded as a
865
+ # code template only.
866
+ # It will require modifications to work:
867
+ # - It may require correct/in-range values for request initialization.
868
+ # - It may require specifying regional endpoints when creating the service
869
+ # client as shown in:
870
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
829
871
from google.cloud import functions_v1
830
872
831
873
async def sample_call_function():
@@ -955,6 +997,13 @@ async def generate_upload_url(
955
997
956
998
.. code-block:: python
957
999
1000
+ # This snippet has been automatically generated and should be regarded as a
1001
+ # code template only.
1002
+ # It will require modifications to work:
1003
+ # - It may require correct/in-range values for request initialization.
1004
+ # - It may require specifying regional endpoints when creating the service
1005
+ # client as shown in:
1006
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
958
1007
from google.cloud import functions_v1
959
1008
960
1009
async def sample_generate_upload_url():
@@ -1030,6 +1079,13 @@ async def generate_download_url(
1030
1079
1031
1080
.. code-block:: python
1032
1081
1082
+ # This snippet has been automatically generated and should be regarded as a
1083
+ # code template only.
1084
+ # It will require modifications to work:
1085
+ # - It may require correct/in-range values for request initialization.
1086
+ # - It may require specifying regional endpoints when creating the service
1087
+ # client as shown in:
1088
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1033
1089
from google.cloud import functions_v1
1034
1090
1035
1091
async def sample_generate_download_url():
@@ -1101,6 +1157,13 @@ async def set_iam_policy(
1101
1157
1102
1158
.. code-block:: python
1103
1159
1160
+ # This snippet has been automatically generated and should be regarded as a
1161
+ # code template only.
1162
+ # It will require modifications to work:
1163
+ # - It may require correct/in-range values for request initialization.
1164
+ # - It may require specifying regional endpoints when creating the service
1165
+ # client as shown in:
1166
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1104
1167
from google.cloud import functions_v1
1105
1168
from google.iam.v1 import iam_policy_pb2 # type: ignore
1106
1169
@@ -1239,6 +1302,13 @@ async def get_iam_policy(
1239
1302
1240
1303
.. code-block:: python
1241
1304
1305
+ # This snippet has been automatically generated and should be regarded as a
1306
+ # code template only.
1307
+ # It will require modifications to work:
1308
+ # - It may require correct/in-range values for request initialization.
1309
+ # - It may require specifying regional endpoints when creating the service
1310
+ # client as shown in:
1311
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1242
1312
from google.cloud import functions_v1
1243
1313
from google.iam.v1 import iam_policy_pb2 # type: ignore
1244
1314
@@ -1377,6 +1447,13 @@ async def test_iam_permissions(
1377
1447
1378
1448
.. code-block:: python
1379
1449
1450
+ # This snippet has been automatically generated and should be regarded as a
1451
+ # code template only.
1452
+ # It will require modifications to work:
1453
+ # - It may require correct/in-range values for request initialization.
1454
+ # - It may require specifying regional endpoints when creating the service
1455
+ # client as shown in:
1456
+ # https://googleapis.dev/python/google-api-core/latest/client_options.html
1380
1457
from google.cloud import functions_v1
1381
1458
from google.iam.v1 import iam_policy_pb2 # type: ignore
1382
1459
@@ -1387,7 +1464,7 @@ async def sample_test_iam_permissions():
1387
1464
# Initialize request argument(s)
1388
1465
request = iam_policy_pb2.TestIamPermissionsRequest(
1389
1466
resource="resource_value",
1390
- permissions=['permissions_value_1 ', 'permissions_value_2 '],
1467
+ permissions=['permissions_value1 ', 'permissions_value2 '],
1391
1468
)
1392
1469
1393
1470
# Make the request
0 commit comments