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

Commit 1e3ac75

Browse files
chore: Bump gapic-generator-python version to 1.3.0 (#43)
- [ ] 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 bc2321a commit 1e3ac75

28 files changed

+533
-225
lines changed

google/cloud/run_v2/services/revisions/async_client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@ async def get_revision(
227227
228228
.. code-block:: python
229229
230+
# This snippet has been automatically generated and should be regarded as a
231+
# code template only.
232+
# It will require modifications to work:
233+
# - It may require correct/in-range values for request initialization.
234+
# - It may require specifying regional endpoints when creating the service
235+
# client as shown in:
236+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
230237
from google.cloud import run_v2
231238
232239
async def sample_get_revision():
@@ -327,6 +334,13 @@ async def list_revisions(
327334
328335
.. code-block:: python
329336
337+
# This snippet has been automatically generated and should be regarded as a
338+
# code template only.
339+
# It will require modifications to work:
340+
# - It may require correct/in-range values for request initialization.
341+
# - It may require specifying regional endpoints when creating the service
342+
# client as shown in:
343+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
330344
from google.cloud import run_v2
331345
332346
async def sample_list_revisions():
@@ -438,6 +452,13 @@ async def delete_revision(
438452
439453
.. code-block:: python
440454
455+
# This snippet has been automatically generated and should be regarded as a
456+
# code template only.
457+
# It will require modifications to work:
458+
# - It may require correct/in-range values for request initialization.
459+
# - It may require specifying regional endpoints when creating the service
460+
# client as shown in:
461+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
441462
from google.cloud import run_v2
442463
443464
async def sample_delete_revision():

google/cloud/run_v2/services/revisions/client.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,13 @@ def get_revision(
555555
556556
.. code-block:: python
557557
558+
# This snippet has been automatically generated and should be regarded as a
559+
# code template only.
560+
# It will require modifications to work:
561+
# - It may require correct/in-range values for request initialization.
562+
# - It may require specifying regional endpoints when creating the service
563+
# client as shown in:
564+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
558565
from google.cloud import run_v2
559566
560567
def sample_get_revision():
@@ -663,6 +670,13 @@ def list_revisions(
663670
664671
.. code-block:: python
665672
673+
# This snippet has been automatically generated and should be regarded as a
674+
# code template only.
675+
# It will require modifications to work:
676+
# - It may require correct/in-range values for request initialization.
677+
# - It may require specifying regional endpoints when creating the service
678+
# client as shown in:
679+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
666680
from google.cloud import run_v2
667681
668682
def sample_list_revisions():
@@ -782,6 +796,13 @@ def delete_revision(
782796
783797
.. code-block:: python
784798
799+
# This snippet has been automatically generated and should be regarded as a
800+
# code template only.
801+
# It will require modifications to work:
802+
# - It may require correct/in-range values for request initialization.
803+
# - It may require specifying regional endpoints when creating the service
804+
# client as shown in:
805+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
785806
from google.cloud import run_v2
786807
787808
def sample_delete_revision():

google/cloud/run_v2/services/services/async_client.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,13 @@ async def create_service(
231231
232232
.. code-block:: python
233233
234+
# This snippet has been automatically generated and should be regarded as a
235+
# code template only.
236+
# It will require modifications to work:
237+
# - It may require correct/in-range values for request initialization.
238+
# - It may require specifying regional endpoints when creating the service
239+
# client as shown in:
240+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
234241
from google.cloud import run_v2
235242
236243
async def sample_create_service():
@@ -367,6 +374,13 @@ async def get_service(
367374
368375
.. code-block:: python
369376
377+
# This snippet has been automatically generated and should be regarded as a
378+
# code template only.
379+
# It will require modifications to work:
380+
# - It may require correct/in-range values for request initialization.
381+
# - It may require specifying regional endpoints when creating the service
382+
# client as shown in:
383+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
370384
from google.cloud import run_v2
371385
372386
async def sample_get_service():
@@ -479,6 +493,13 @@ async def list_services(
479493
480494
.. code-block:: python
481495
496+
# This snippet has been automatically generated and should be regarded as a
497+
# code template only.
498+
# It will require modifications to work:
499+
# - It may require correct/in-range values for request initialization.
500+
# - It may require specifying regional endpoints when creating the service
501+
# client as shown in:
502+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
482503
from google.cloud import run_v2
483504
484505
async def sample_list_services():
@@ -599,6 +620,13 @@ async def update_service(
599620
600621
.. code-block:: python
601622
623+
# This snippet has been automatically generated and should be regarded as a
624+
# code template only.
625+
# It will require modifications to work:
626+
# - It may require correct/in-range values for request initialization.
627+
# - It may require specifying regional endpoints when creating the service
628+
# client as shown in:
629+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
602630
from google.cloud import run_v2
603631
604632
async def sample_update_service():
@@ -714,6 +742,13 @@ async def delete_service(
714742
715743
.. code-block:: python
716744
745+
# This snippet has been automatically generated and should be regarded as a
746+
# code template only.
747+
# It will require modifications to work:
748+
# - It may require correct/in-range values for request initialization.
749+
# - It may require specifying regional endpoints when creating the service
750+
# client as shown in:
751+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
717752
from google.cloud import run_v2
718753
719754
async def sample_delete_service():
@@ -830,6 +865,13 @@ async def get_iam_policy(
830865
831866
.. code-block:: python
832867
868+
# This snippet has been automatically generated and should be regarded as a
869+
# code template only.
870+
# It will require modifications to work:
871+
# - It may require correct/in-range values for request initialization.
872+
# - It may require specifying regional endpoints when creating the service
873+
# client as shown in:
874+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
833875
from google.cloud import run_v2
834876
from google.iam.v1 import iam_policy_pb2 # type: ignore
835877
@@ -967,6 +1009,13 @@ async def set_iam_policy(
9671009
9681010
.. code-block:: python
9691011
1012+
# This snippet has been automatically generated and should be regarded as a
1013+
# code template only.
1014+
# It will require modifications to work:
1015+
# - It may require correct/in-range values for request initialization.
1016+
# - It may require specifying regional endpoints when creating the service
1017+
# client as shown in:
1018+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
9701019
from google.cloud import run_v2
9711020
from google.iam.v1 import iam_policy_pb2 # type: ignore
9721021
@@ -1106,6 +1155,13 @@ async def test_iam_permissions(
11061155
11071156
.. code-block:: python
11081157
1158+
# This snippet has been automatically generated and should be regarded as a
1159+
# code template only.
1160+
# It will require modifications to work:
1161+
# - It may require correct/in-range values for request initialization.
1162+
# - It may require specifying regional endpoints when creating the service
1163+
# client as shown in:
1164+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11091165
from google.cloud import run_v2
11101166
from google.iam.v1 import iam_policy_pb2 # type: ignore
11111167
@@ -1116,7 +1172,7 @@ async def sample_test_iam_permissions():
11161172
# Initialize request argument(s)
11171173
request = iam_policy_pb2.TestIamPermissionsRequest(
11181174
resource="resource_value",
1119-
permissions=['permissions_value_1', 'permissions_value_2'],
1175+
permissions=['permissions_value1', 'permissions_value2'],
11201176
)
11211177
11221178
# Make the request

google/cloud/run_v2/services/services/client.py

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,13 @@ def create_service(
561561
562562
.. code-block:: python
563563
564+
# This snippet has been automatically generated and should be regarded as a
565+
# code template only.
566+
# It will require modifications to work:
567+
# - It may require correct/in-range values for request initialization.
568+
# - It may require specifying regional endpoints when creating the service
569+
# client as shown in:
570+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
564571
from google.cloud import run_v2
565572
566573
def sample_create_service():
@@ -705,6 +712,13 @@ def get_service(
705712
706713
.. code-block:: python
707714
715+
# This snippet has been automatically generated and should be regarded as a
716+
# code template only.
717+
# It will require modifications to work:
718+
# - It may require correct/in-range values for request initialization.
719+
# - It may require specifying regional endpoints when creating the service
720+
# client as shown in:
721+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
708722
from google.cloud import run_v2
709723
710724
def sample_get_service():
@@ -816,6 +830,13 @@ def list_services(
816830
817831
.. code-block:: python
818832
833+
# This snippet has been automatically generated and should be regarded as a
834+
# code template only.
835+
# It will require modifications to work:
836+
# - It may require correct/in-range values for request initialization.
837+
# - It may require specifying regional endpoints when creating the service
838+
# client as shown in:
839+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
819840
from google.cloud import run_v2
820841
821842
def sample_list_services():
@@ -935,6 +956,13 @@ def update_service(
935956
936957
.. code-block:: python
937958
959+
# This snippet has been automatically generated and should be regarded as a
960+
# code template only.
961+
# It will require modifications to work:
962+
# - It may require correct/in-range values for request initialization.
963+
# - It may require specifying regional endpoints when creating the service
964+
# client as shown in:
965+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
938966
from google.cloud import run_v2
939967
940968
def sample_update_service():
@@ -1056,6 +1084,13 @@ def delete_service(
10561084
10571085
.. code-block:: python
10581086
1087+
# This snippet has been automatically generated and should be regarded as a
1088+
# code template only.
1089+
# It will require modifications to work:
1090+
# - It may require correct/in-range values for request initialization.
1091+
# - It may require specifying regional endpoints when creating the service
1092+
# client as shown in:
1093+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
10591094
from google.cloud import run_v2
10601095
10611096
def sample_delete_service():
@@ -1180,6 +1215,13 @@ def get_iam_policy(
11801215
11811216
.. code-block:: python
11821217
1218+
# This snippet has been automatically generated and should be regarded as a
1219+
# code template only.
1220+
# It will require modifications to work:
1221+
# - It may require correct/in-range values for request initialization.
1222+
# - It may require specifying regional endpoints when creating the service
1223+
# client as shown in:
1224+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
11831225
from google.cloud import run_v2
11841226
from google.iam.v1 import iam_policy_pb2 # type: ignore
11851227
@@ -1316,6 +1358,13 @@ def set_iam_policy(
13161358
13171359
.. code-block:: python
13181360
1361+
# This snippet has been automatically generated and should be regarded as a
1362+
# code template only.
1363+
# It will require modifications to work:
1364+
# - It may require correct/in-range values for request initialization.
1365+
# - It may require specifying regional endpoints when creating the service
1366+
# client as shown in:
1367+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
13191368
from google.cloud import run_v2
13201369
from google.iam.v1 import iam_policy_pb2 # type: ignore
13211370
@@ -1454,6 +1503,13 @@ def test_iam_permissions(
14541503
14551504
.. code-block:: python
14561505
1506+
# This snippet has been automatically generated and should be regarded as a
1507+
# code template only.
1508+
# It will require modifications to work:
1509+
# - It may require correct/in-range values for request initialization.
1510+
# - It may require specifying regional endpoints when creating the service
1511+
# client as shown in:
1512+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
14571513
from google.cloud import run_v2
14581514
from google.iam.v1 import iam_policy_pb2 # type: ignore
14591515
@@ -1464,7 +1520,7 @@ def sample_test_iam_permissions():
14641520
# Initialize request argument(s)
14651521
request = iam_policy_pb2.TestIamPermissionsRequest(
14661522
resource="resource_value",
1467-
permissions=['permissions_value_1', 'permissions_value_2'],
1523+
permissions=['permissions_value1', 'permissions_value2'],
14681524
)
14691525
14701526
# Make the request

mypy.ini

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

samples/generated_samples/run_v2_generated_revisions_delete_revision_async.py

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

2525

2626
# [START run_v2_generated_Revisions_DeleteRevision_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 run_v2
2835

2936

samples/generated_samples/run_v2_generated_revisions_delete_revision_sync.py

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

2525

2626
# [START run_v2_generated_Revisions_DeleteRevision_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 run_v2
2835

2936

samples/generated_samples/run_v2_generated_revisions_get_revision_async.py

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

2525

2626
# [START run_v2_generated_Revisions_GetRevision_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 run_v2
2835

2936

samples/generated_samples/run_v2_generated_revisions_get_revision_sync.py

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

2525

2626
# [START run_v2_generated_Revisions_GetRevision_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 run_v2
2835

2936

0 commit comments

Comments
 (0)