Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 30507dc

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#220)
- [ ] 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 7ace47f commit 30507dc

File tree

45 files changed

+917
-385
lines changed

Some content is hidden

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

45 files changed

+917
-385
lines changed

google/cloud/functions_v1/services/cloud_functions_service/async_client.py

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,13 @@ async def list_functions(
239239
240240
.. code-block:: python
241241
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
242249
from google.cloud import functions_v1
243250
244251
async def sample_list_functions():
@@ -335,6 +342,13 @@ async def get_function(
335342
336343
.. code-block:: python
337344
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
338352
from google.cloud import functions_v1
339353
340354
async def sample_get_function():
@@ -445,6 +459,13 @@ async def create_function(
445459
446460
.. code-block:: python
447461
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
448469
from google.cloud import functions_v1
449470
450471
async def sample_create_function():
@@ -567,6 +588,13 @@ async def update_function(
567588
568589
.. code-block:: python
569590
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
570598
from google.cloud import functions_v1
571599
572600
async def sample_update_function():
@@ -695,6 +723,13 @@ async def delete_function(
695723
696724
.. code-block:: python
697725
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
698733
from google.cloud import functions_v1
699734
700735
async def sample_delete_function():
@@ -826,6 +861,13 @@ async def call_function(
826861
827862
.. code-block:: python
828863
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
829871
from google.cloud import functions_v1
830872
831873
async def sample_call_function():
@@ -955,6 +997,13 @@ async def generate_upload_url(
955997
956998
.. code-block:: python
957999
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
9581007
from google.cloud import functions_v1
9591008
9601009
async def sample_generate_upload_url():
@@ -1030,6 +1079,13 @@ async def generate_download_url(
10301079
10311080
.. code-block:: python
10321081
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
10331089
from google.cloud import functions_v1
10341090
10351091
async def sample_generate_download_url():
@@ -1101,6 +1157,13 @@ async def set_iam_policy(
11011157
11021158
.. code-block:: python
11031159
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
11041167
from google.cloud import functions_v1
11051168
from google.iam.v1 import iam_policy_pb2 # type: ignore
11061169
@@ -1239,6 +1302,13 @@ async def get_iam_policy(
12391302
12401303
.. code-block:: python
12411304
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
12421312
from google.cloud import functions_v1
12431313
from google.iam.v1 import iam_policy_pb2 # type: ignore
12441314
@@ -1377,6 +1447,13 @@ async def test_iam_permissions(
13771447
13781448
.. code-block:: python
13791449
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
13801457
from google.cloud import functions_v1
13811458
from google.iam.v1 import iam_policy_pb2 # type: ignore
13821459
@@ -1387,7 +1464,7 @@ async def sample_test_iam_permissions():
13871464
# Initialize request argument(s)
13881465
request = iam_policy_pb2.TestIamPermissionsRequest(
13891466
resource="resource_value",
1390-
permissions=['permissions_value_1', 'permissions_value_2'],
1467+
permissions=['permissions_value1', 'permissions_value2'],
13911468
)
13921469
13931470
# Make the request

google/cloud/functions_v1/services/cloud_functions_service/client.py

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,13 @@ def list_functions(
499499
500500
.. code-block:: python
501501
502+
# This snippet has been automatically generated and should be regarded as a
503+
# code template only.
504+
# It will require modifications to work:
505+
# - It may require correct/in-range values for request initialization.
506+
# - It may require specifying regional endpoints when creating the service
507+
# client as shown in:
508+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
502509
from google.cloud import functions_v1
503510
504511
def sample_list_functions():
@@ -586,6 +593,13 @@ def get_function(
586593
587594
.. code-block:: python
588595
596+
# This snippet has been automatically generated and should be regarded as a
597+
# code template only.
598+
# It will require modifications to work:
599+
# - It may require correct/in-range values for request initialization.
600+
# - It may require specifying regional endpoints when creating the service
601+
# client as shown in:
602+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
589603
from google.cloud import functions_v1
590604
591605
def sample_get_function():
@@ -686,6 +700,13 @@ def create_function(
686700
687701
.. code-block:: python
688702
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
689710
from google.cloud import functions_v1
690711
691712
def sample_create_function():
@@ -808,6 +829,13 @@ def update_function(
808829
809830
.. code-block:: python
810831
832+
# This snippet has been automatically generated and should be regarded as a
833+
# code template only.
834+
# It will require modifications to work:
835+
# - It may require correct/in-range values for request initialization.
836+
# - It may require specifying regional endpoints when creating the service
837+
# client as shown in:
838+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
811839
from google.cloud import functions_v1
812840
813841
def sample_update_function():
@@ -926,6 +954,13 @@ def delete_function(
926954
927955
.. code-block:: python
928956
957+
# This snippet has been automatically generated and should be regarded as a
958+
# code template only.
959+
# It will require modifications to work:
960+
# - It may require correct/in-range values for request initialization.
961+
# - It may require specifying regional endpoints when creating the service
962+
# client as shown in:
963+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
929964
from google.cloud import functions_v1
930965
931966
def sample_delete_function():
@@ -1047,6 +1082,13 @@ def call_function(
10471082
10481083
.. code-block:: python
10491084
1085+
# This snippet has been automatically generated and should be regarded as a
1086+
# code template only.
1087+
# It will require modifications to work:
1088+
# - It may require correct/in-range values for request initialization.
1089+
# - It may require specifying regional endpoints when creating the service
1090+
# client as shown in:
1091+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10501092
from google.cloud import functions_v1
10511093
10521094
def sample_call_function():
@@ -1176,6 +1218,13 @@ def generate_upload_url(
11761218
11771219
.. code-block:: python
11781220
1221+
# This snippet has been automatically generated and should be regarded as a
1222+
# code template only.
1223+
# It will require modifications to work:
1224+
# - It may require correct/in-range values for request initialization.
1225+
# - It may require specifying regional endpoints when creating the service
1226+
# client as shown in:
1227+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11791228
from google.cloud import functions_v1
11801229
11811230
def sample_generate_upload_url():
@@ -1252,6 +1301,13 @@ def generate_download_url(
12521301
12531302
.. code-block:: python
12541303
1304+
# This snippet has been automatically generated and should be regarded as a
1305+
# code template only.
1306+
# It will require modifications to work:
1307+
# - It may require correct/in-range values for request initialization.
1308+
# - It may require specifying regional endpoints when creating the service
1309+
# client as shown in:
1310+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
12551311
from google.cloud import functions_v1
12561312
12571313
def sample_generate_download_url():
@@ -1324,6 +1380,13 @@ def set_iam_policy(
13241380
13251381
.. code-block:: python
13261382
1383+
# This snippet has been automatically generated and should be regarded as a
1384+
# code template only.
1385+
# It will require modifications to work:
1386+
# - It may require correct/in-range values for request initialization.
1387+
# - It may require specifying regional endpoints when creating the service
1388+
# client as shown in:
1389+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
13271390
from google.cloud import functions_v1
13281391
from google.iam.v1 import iam_policy_pb2 # type: ignore
13291392
@@ -1461,6 +1524,13 @@ def get_iam_policy(
14611524
14621525
.. code-block:: python
14631526
1527+
# This snippet has been automatically generated and should be regarded as a
1528+
# code template only.
1529+
# It will require modifications to work:
1530+
# - It may require correct/in-range values for request initialization.
1531+
# - It may require specifying regional endpoints when creating the service
1532+
# client as shown in:
1533+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
14641534
from google.cloud import functions_v1
14651535
from google.iam.v1 import iam_policy_pb2 # type: ignore
14661536
@@ -1598,6 +1668,13 @@ def test_iam_permissions(
15981668
15991669
.. code-block:: python
16001670
1671+
# This snippet has been automatically generated and should be regarded as a
1672+
# code template only.
1673+
# It will require modifications to work:
1674+
# - It may require correct/in-range values for request initialization.
1675+
# - It may require specifying regional endpoints when creating the service
1676+
# client as shown in:
1677+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
16011678
from google.cloud import functions_v1
16021679
from google.iam.v1 import iam_policy_pb2 # type: ignore
16031680
@@ -1608,7 +1685,7 @@ def sample_test_iam_permissions():
16081685
# Initialize request argument(s)
16091686
request = iam_policy_pb2.TestIamPermissionsRequest(
16101687
resource="resource_value",
1611-
permissions=['permissions_value_1', 'permissions_value_2'],
1688+
permissions=['permissions_value1', 'permissions_value2'],
16121689
)
16131690
16141691
# Make the request

0 commit comments

Comments
 (0)