From 820ced23c5241d03e2eae6e6f3226ceb5fbe81db Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 7 Sep 2022 14:14:23 +0000 Subject: [PATCH] chore: Bump gapic-generator-python version to 1.3.0 (#217) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472561635 Source-Link: https://github.com/googleapis/googleapis/commit/332ecf599f8e747d8d1213b77ae7db26eff12814 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4313d682880fd9d7247291164d4e9d3d5bd9f177 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDMxM2Q2ODI4ODBmZDlkNzI0NzI5MTE2NGQ0ZTlkM2Q1YmQ5ZjE3NyJ9 --- .../async_client.py | 7 ++++ .../client.py | 7 ++++ .../google-cloud-phishing-protection/mypy.ini | 2 +- ..._service_v1_beta1_report_phishing_async.py | 7 ++++ ...n_service_v1_beta1_report_phishing_sync.py | 7 ++++ ...t_metadata_phishingprotection_v1beta1.json | 40 +++++++++---------- 6 files changed, 49 insertions(+), 21 deletions(-) diff --git a/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/async_client.py b/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/async_client.py index e1426b7dba8b..37cbfaf1793e 100644 --- a/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/async_client.py +++ b/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/async_client.py @@ -236,6 +236,13 @@ async def report_phishing( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import phishingprotection_v1beta1 async def sample_report_phishing(): diff --git a/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/client.py b/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/client.py index 569e8f3a86ff..a2041d2e02dc 100644 --- a/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/client.py +++ b/packages/google-cloud-phishing-protection/google/cloud/phishingprotection_v1beta1/services/phishing_protection_service_v1_beta1/client.py @@ -436,6 +436,13 @@ def report_phishing( .. code-block:: python + # This snippet has been automatically generated and should be regarded as a + # code template only. + # It will require modifications to work: + # - It may require correct/in-range values for request initialization. + # - It may require specifying regional endpoints when creating the service + # client as shown in: + # https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import phishingprotection_v1beta1 def sample_report_phishing(): diff --git a/packages/google-cloud-phishing-protection/mypy.ini b/packages/google-cloud-phishing-protection/mypy.ini index 4505b485436b..574c5aed394b 100644 --- a/packages/google-cloud-phishing-protection/mypy.ini +++ b/packages/google-cloud-phishing-protection/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.6 +python_version = 3.7 namespace_packages = True diff --git a/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_async.py b/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_async.py index 47664d8acea5..c7d2504b5ab7 100644 --- a/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_async.py +++ b/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_async.py @@ -24,6 +24,13 @@ # [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_async] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import phishingprotection_v1beta1 diff --git a/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_sync.py b/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_sync.py index 03c12c7547d3..21a982a1cf3b 100644 --- a/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_sync.py +++ b/packages/google-cloud-phishing-protection/samples/generated_samples/phishingprotection_v1beta1_generated_phishing_protection_service_v1_beta1_report_phishing_sync.py @@ -24,6 +24,13 @@ # [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_sync] +# This snippet has been automatically generated and should be regarded as a +# code template only. +# It will require modifications to work: +# - It may require correct/in-range values for request initialization. +# - It may require specifying regional endpoints when creating the service +# client as shown in: +# https://googleapis.dev/python/google-api-core/latest/client_options.html from google.cloud import phishingprotection_v1beta1 diff --git a/packages/google-cloud-phishing-protection/samples/generated_samples/snippet_metadata_phishingprotection_v1beta1.json b/packages/google-cloud-phishing-protection/samples/generated_samples/snippet_metadata_phishingprotection_v1beta1.json index b28363086312..933fe16aaaba 100644 --- a/packages/google-cloud-phishing-protection/samples/generated_samples/snippet_metadata_phishingprotection_v1beta1.json +++ b/packages/google-cloud-phishing-protection/samples/generated_samples/snippet_metadata_phishingprotection_v1beta1.json @@ -63,33 +63,33 @@ "regionTag": "phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_async", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ], @@ -147,33 +147,33 @@ "regionTag": "phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_sync", "segments": [ { - "end": 45, + "end": 52, "start": 27, "type": "FULL" }, { - "end": 45, + "end": 52, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 39, - "start": 34, + "end": 46, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 42, - "start": 40, + "end": 49, + "start": 47, "type": "REQUEST_EXECUTION" }, { - "end": 46, - "start": 43, + "end": 53, + "start": 50, "type": "RESPONSE_HANDLING" } ],