Skip to content

Commit 882a01e

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

File tree

20 files changed

+385
-161
lines changed

20 files changed

+385
-161
lines changed

packages/google-cloud-bigquery-connection/google/cloud/bigquery_connection_v1/services/connection_service/async_client.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,13 @@ async def create_connection(
223223
224224
.. code-block:: python
225225
226+
# This snippet has been automatically generated and should be regarded as a
227+
# code template only.
228+
# It will require modifications to work:
229+
# - It may require correct/in-range values for request initialization.
230+
# - It may require specifying regional endpoints when creating the service
231+
# client as shown in:
232+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
226233
from google.cloud import bigquery_connection_v1
227234
228235
async def sample_create_connection():
@@ -335,6 +342,13 @@ async def get_connection(
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 bigquery_connection_v1
339353
340354
async def sample_get_connection():
@@ -441,6 +455,13 @@ async def list_connections(
441455
442456
.. code-block:: python
443457
458+
# This snippet has been automatically generated and should be regarded as a
459+
# code template only.
460+
# It will require modifications to work:
461+
# - It may require correct/in-range values for request initialization.
462+
# - It may require specifying regional endpoints when creating the service
463+
# client as shown in:
464+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
444465
from google.cloud import bigquery_connection_v1
445466
446467
async def sample_list_connections():
@@ -564,6 +585,13 @@ async def update_connection(
564585
565586
.. code-block:: python
566587
588+
# This snippet has been automatically generated and should be regarded as a
589+
# code template only.
590+
# It will require modifications to work:
591+
# - It may require correct/in-range values for request initialization.
592+
# - It may require specifying regional endpoints when creating the service
593+
# client as shown in:
594+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
567595
from google.cloud import bigquery_connection_v1
568596
569597
async def sample_update_connection():
@@ -678,6 +706,13 @@ async def delete_connection(
678706
679707
.. code-block:: python
680708
709+
# This snippet has been automatically generated and should be regarded as a
710+
# code template only.
711+
# It will require modifications to work:
712+
# - It may require correct/in-range values for request initialization.
713+
# - It may require specifying regional endpoints when creating the service
714+
# client as shown in:
715+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
681716
from google.cloud import bigquery_connection_v1
682717
683718
async def sample_delete_connection():
@@ -773,6 +808,13 @@ async def get_iam_policy(
773808
774809
.. code-block:: python
775810
811+
# This snippet has been automatically generated and should be regarded as a
812+
# code template only.
813+
# It will require modifications to work:
814+
# - It may require correct/in-range values for request initialization.
815+
# - It may require specifying regional endpoints when creating the service
816+
# client as shown in:
817+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
776818
from google.cloud import bigquery_connection_v1
777819
from google.iam.v1 import iam_policy_pb2 # type: ignore
778820
@@ -936,6 +978,13 @@ async def set_iam_policy(
936978
937979
.. code-block:: python
938980
981+
# This snippet has been automatically generated and should be regarded as a
982+
# code template only.
983+
# It will require modifications to work:
984+
# - It may require correct/in-range values for request initialization.
985+
# - It may require specifying regional endpoints when creating the service
986+
# client as shown in:
987+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
939988
from google.cloud import bigquery_connection_v1
940989
from google.iam.v1 import iam_policy_pb2 # type: ignore
941990
@@ -1103,6 +1152,13 @@ async def test_iam_permissions(
11031152
11041153
.. code-block:: python
11051154
1155+
# This snippet has been automatically generated and should be regarded as a
1156+
# code template only.
1157+
# It will require modifications to work:
1158+
# - It may require correct/in-range values for request initialization.
1159+
# - It may require specifying regional endpoints when creating the service
1160+
# client as shown in:
1161+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11061162
from google.cloud import bigquery_connection_v1
11071163
from google.iam.v1 import iam_policy_pb2 # type: ignore
11081164
@@ -1113,7 +1169,7 @@ async def sample_test_iam_permissions():
11131169
# Initialize request argument(s)
11141170
request = iam_policy_pb2.TestIamPermissionsRequest(
11151171
resource="resource_value",
1116-
permissions=['permissions_value_1', 'permissions_value_2'],
1172+
permissions=['permissions_value1', 'permissions_value2'],
11171173
)
11181174
11191175
# Make the request

packages/google-cloud-bigquery-connection/google/cloud/bigquery_connection_v1/services/connection_service/client.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,13 @@ def create_connection(
450450
451451
.. code-block:: python
452452
453+
# This snippet has been automatically generated and should be regarded as a
454+
# code template only.
455+
# It will require modifications to work:
456+
# - It may require correct/in-range values for request initialization.
457+
# - It may require specifying regional endpoints when creating the service
458+
# client as shown in:
459+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
453460
from google.cloud import bigquery_connection_v1
454461
455462
def sample_create_connection():
@@ -562,6 +569,13 @@ def get_connection(
562569
563570
.. code-block:: python
564571
572+
# This snippet has been automatically generated and should be regarded as a
573+
# code template only.
574+
# It will require modifications to work:
575+
# - It may require correct/in-range values for request initialization.
576+
# - It may require specifying regional endpoints when creating the service
577+
# client as shown in:
578+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
565579
from google.cloud import bigquery_connection_v1
566580
567581
def sample_get_connection():
@@ -658,6 +672,13 @@ def list_connections(
658672
659673
.. code-block:: python
660674
675+
# This snippet has been automatically generated and should be regarded as a
676+
# code template only.
677+
# It will require modifications to work:
678+
# - It may require correct/in-range values for request initialization.
679+
# - It may require specifying regional endpoints when creating the service
680+
# client as shown in:
681+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
661682
from google.cloud import bigquery_connection_v1
662683
663684
def sample_list_connections():
@@ -771,6 +792,13 @@ def update_connection(
771792
772793
.. code-block:: python
773794
795+
# This snippet has been automatically generated and should be regarded as a
796+
# code template only.
797+
# It will require modifications to work:
798+
# - It may require correct/in-range values for request initialization.
799+
# - It may require specifying regional endpoints when creating the service
800+
# client as shown in:
801+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
774802
from google.cloud import bigquery_connection_v1
775803
776804
def sample_update_connection():
@@ -885,6 +913,13 @@ def delete_connection(
885913
886914
.. code-block:: python
887915
916+
# This snippet has been automatically generated and should be regarded as a
917+
# code template only.
918+
# It will require modifications to work:
919+
# - It may require correct/in-range values for request initialization.
920+
# - It may require specifying regional endpoints when creating the service
921+
# client as shown in:
922+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
888923
from google.cloud import bigquery_connection_v1
889924
890925
def sample_delete_connection():
@@ -970,6 +1005,13 @@ def get_iam_policy(
9701005
9711006
.. code-block:: python
9721007
1008+
# This snippet has been automatically generated and should be regarded as a
1009+
# code template only.
1010+
# It will require modifications to work:
1011+
# - It may require correct/in-range values for request initialization.
1012+
# - It may require specifying regional endpoints when creating the service
1013+
# client as shown in:
1014+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
9731015
from google.cloud import bigquery_connection_v1
9741016
from google.iam.v1 import iam_policy_pb2 # type: ignore
9751017
@@ -1130,6 +1172,13 @@ def set_iam_policy(
11301172
11311173
.. code-block:: python
11321174
1175+
# This snippet has been automatically generated and should be regarded as a
1176+
# code template only.
1177+
# It will require modifications to work:
1178+
# - It may require correct/in-range values for request initialization.
1179+
# - It may require specifying regional endpoints when creating the service
1180+
# client as shown in:
1181+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11331182
from google.cloud import bigquery_connection_v1
11341183
from google.iam.v1 import iam_policy_pb2 # type: ignore
11351184
@@ -1294,6 +1343,13 @@ def test_iam_permissions(
12941343
12951344
.. code-block:: python
12961345
1346+
# This snippet has been automatically generated and should be regarded as a
1347+
# code template only.
1348+
# It will require modifications to work:
1349+
# - It may require correct/in-range values for request initialization.
1350+
# - It may require specifying regional endpoints when creating the service
1351+
# client as shown in:
1352+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
12971353
from google.cloud import bigquery_connection_v1
12981354
from google.iam.v1 import iam_policy_pb2 # type: ignore
12991355
@@ -1304,7 +1360,7 @@ def sample_test_iam_permissions():
13041360
# Initialize request argument(s)
13051361
request = iam_policy_pb2.TestIamPermissionsRequest(
13061362
resource="resource_value",
1307-
permissions=['permissions_value_1', 'permissions_value_2'],
1363+
permissions=['permissions_value1', 'permissions_value2'],
13081364
)
13091365
13101366
# Make the request
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-bigquery-connection/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_async.py

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

2525

2626
# [START bigqueryconnection_v1_generated_ConnectionService_CreateConnection_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 bigquery_connection_v1
2835

2936

packages/google-cloud-bigquery-connection/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_create_connection_sync.py

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

2525

2626
# [START bigqueryconnection_v1_generated_ConnectionService_CreateConnection_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 bigquery_connection_v1
2835

2936

packages/google-cloud-bigquery-connection/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_async.py

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

2525

2626
# [START bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_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 bigquery_connection_v1
2835

2936

packages/google-cloud-bigquery-connection/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_delete_connection_sync.py

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

2525

2626
# [START bigqueryconnection_v1_generated_ConnectionService_DeleteConnection_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 bigquery_connection_v1
2835

2936

packages/google-cloud-bigquery-connection/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_async.py

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

2525

2626
# [START bigqueryconnection_v1_generated_ConnectionService_GetConnection_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 bigquery_connection_v1
2835

2936

packages/google-cloud-bigquery-connection/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_connection_sync.py

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

2525

2626
# [START bigqueryconnection_v1_generated_ConnectionService_GetConnection_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 bigquery_connection_v1
2835

2936

packages/google-cloud-bigquery-connection/samples/generated_samples/bigqueryconnection_v1_generated_connection_service_get_iam_policy_async.py

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

2525

2626
# [START bigqueryconnection_v1_generated_ConnectionService_GetIamPolicy_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 bigquery_connection_v1
2835
from google.iam.v1 import iam_policy_pb2 # type: ignore
2936

0 commit comments

Comments
 (0)