Skip to content

Commit 76b78d4

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

12 files changed

+197
-85
lines changed

packages/google-cloud-containeranalysis/google/cloud/devtools/containeranalysis_v1/services/container_analysis/async_client.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,13 @@ async def set_iam_policy(
255255
256256
.. code-block:: python
257257
258+
# This snippet has been automatically generated and should be regarded as a
259+
# code template only.
260+
# It will require modifications to work:
261+
# - It may require correct/in-range values for request initialization.
262+
# - It may require specifying regional endpoints when creating the service
263+
# client as shown in:
264+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
258265
from google.cloud.devtools import containeranalysis_v1
259266
from google.iam.v1 import iam_policy_pb2 # type: ignore
260267
@@ -422,6 +429,13 @@ async def get_iam_policy(
422429
423430
.. code-block:: python
424431
432+
# This snippet has been automatically generated and should be regarded as a
433+
# code template only.
434+
# It will require modifications to work:
435+
# - It may require correct/in-range values for request initialization.
436+
# - It may require specifying regional endpoints when creating the service
437+
# client as shown in:
438+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
425439
from google.cloud.devtools import containeranalysis_v1
426440
from google.iam.v1 import iam_policy_pb2 # type: ignore
427441
@@ -589,6 +603,13 @@ async def test_iam_permissions(
589603
590604
.. code-block:: python
591605
606+
# This snippet has been automatically generated and should be regarded as a
607+
# code template only.
608+
# It will require modifications to work:
609+
# - It may require correct/in-range values for request initialization.
610+
# - It may require specifying regional endpoints when creating the service
611+
# client as shown in:
612+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
592613
from google.cloud.devtools import containeranalysis_v1
593614
from google.iam.v1 import iam_policy_pb2 # type: ignore
594615
@@ -599,7 +620,7 @@ async def sample_test_iam_permissions():
599620
# Initialize request argument(s)
600621
request = iam_policy_pb2.TestIamPermissionsRequest(
601622
resource="resource_value",
602-
permissions=['permissions_value_1', 'permissions_value_2'],
623+
permissions=['permissions_value1', 'permissions_value2'],
603624
)
604625
605626
# Make the request
@@ -702,6 +723,13 @@ async def get_vulnerability_occurrences_summary(
702723
703724
.. code-block:: python
704725
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
705733
from google.cloud.devtools import containeranalysis_v1
706734
707735
async def sample_get_vulnerability_occurrences_summary():

packages/google-cloud-containeranalysis/google/cloud/devtools/containeranalysis_v1/services/container_analysis/client.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,13 @@ def set_iam_policy(
460460
461461
.. code-block:: python
462462
463+
# This snippet has been automatically generated and should be regarded as a
464+
# code template only.
465+
# It will require modifications to work:
466+
# - It may require correct/in-range values for request initialization.
467+
# - It may require specifying regional endpoints when creating the service
468+
# client as shown in:
469+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
463470
from google.cloud.devtools import containeranalysis_v1
464471
from google.iam.v1 import iam_policy_pb2 # type: ignore
465472
@@ -624,6 +631,13 @@ def get_iam_policy(
624631
625632
.. code-block:: python
626633
634+
# This snippet has been automatically generated and should be regarded as a
635+
# code template only.
636+
# It will require modifications to work:
637+
# - It may require correct/in-range values for request initialization.
638+
# - It may require specifying regional endpoints when creating the service
639+
# client as shown in:
640+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
627641
from google.cloud.devtools import containeranalysis_v1
628642
from google.iam.v1 import iam_policy_pb2 # type: ignore
629643
@@ -788,6 +802,13 @@ def test_iam_permissions(
788802
789803
.. code-block:: python
790804
805+
# This snippet has been automatically generated and should be regarded as a
806+
# code template only.
807+
# It will require modifications to work:
808+
# - It may require correct/in-range values for request initialization.
809+
# - It may require specifying regional endpoints when creating the service
810+
# client as shown in:
811+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
791812
from google.cloud.devtools import containeranalysis_v1
792813
from google.iam.v1 import iam_policy_pb2 # type: ignore
793814
@@ -798,7 +819,7 @@ def sample_test_iam_permissions():
798819
# Initialize request argument(s)
799820
request = iam_policy_pb2.TestIamPermissionsRequest(
800821
resource="resource_value",
801-
permissions=['permissions_value_1', 'permissions_value_2'],
822+
permissions=['permissions_value1', 'permissions_value2'],
802823
)
803824
804825
# Make the request
@@ -899,6 +920,13 @@ def get_vulnerability_occurrences_summary(
899920
900921
.. code-block:: python
901922
923+
# This snippet has been automatically generated and should be regarded as a
924+
# code template only.
925+
# It will require modifications to work:
926+
# - It may require correct/in-range values for request initialization.
927+
# - It may require specifying regional endpoints when creating the service
928+
# client as shown in:
929+
# https://googleapis.dev/python/google-api-core/latest/client_options.html
902930
from google.cloud.devtools import containeranalysis_v1
903931
904932
def sample_get_vulnerability_occurrences_summary():
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-containeranalysis/samples/generated_samples/containeranalysis_v1_generated_container_analysis_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 containeranalysis_v1_generated_ContainerAnalysis_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.devtools import containeranalysis_v1
2835
from google.iam.v1 import iam_policy_pb2 # type: ignore
2936

packages/google-cloud-containeranalysis/samples/generated_samples/containeranalysis_v1_generated_container_analysis_get_iam_policy_sync.py

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

2525

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

packages/google-cloud-containeranalysis/samples/generated_samples/containeranalysis_v1_generated_container_analysis_get_vulnerability_occurrences_summary_async.py

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

2525

2626
# [START containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_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.devtools import containeranalysis_v1
2835

2936

packages/google-cloud-containeranalysis/samples/generated_samples/containeranalysis_v1_generated_container_analysis_get_vulnerability_occurrences_summary_sync.py

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

2525

2626
# [START containeranalysis_v1_generated_ContainerAnalysis_GetVulnerabilityOccurrencesSummary_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.devtools import containeranalysis_v1
2835

2936

packages/google-cloud-containeranalysis/samples/generated_samples/containeranalysis_v1_generated_container_analysis_set_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 containeranalysis_v1_generated_ContainerAnalysis_SetIamPolicy_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.devtools import containeranalysis_v1
2835
from google.iam.v1 import iam_policy_pb2 # type: ignore
2936

packages/google-cloud-containeranalysis/samples/generated_samples/containeranalysis_v1_generated_container_analysis_set_iam_policy_sync.py

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

2525

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

packages/google-cloud-containeranalysis/samples/generated_samples/containeranalysis_v1_generated_container_analysis_test_iam_permissions_async.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@
2424

2525

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

@@ -35,7 +42,7 @@ async def sample_test_iam_permissions():
3542
# Initialize request argument(s)
3643
request = iam_policy_pb2.TestIamPermissionsRequest(
3744
resource="resource_value",
38-
permissions=['permissions_value_1', 'permissions_value_2'],
45+
permissions=['permissions_value1', 'permissions_value2'],
3946
)
4047

4148
# Make the request

0 commit comments

Comments
 (0)