diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/async_client.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/async_client.py index d83b69f48f2b..5d5041f3f0d8 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/async_client.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/async_client.py @@ -226,6 +226,13 @@ async def compute_threat_list_diff( .. 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 webrisk_v1 async def sample_compute_threat_list_diff(): @@ -354,6 +361,13 @@ async def search_uris( .. 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 webrisk_v1 async def sample_search_uris(): @@ -468,6 +482,13 @@ async def search_hashes( .. 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 webrisk_v1 async def sample_search_hashes(): @@ -585,6 +606,13 @@ async def create_submission( .. 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 webrisk_v1 async def sample_create_submission(): diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/client.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/client.py index ccacdc85cacd..fe266f6dca1c 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/client.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1/services/web_risk_service/client.py @@ -431,6 +431,13 @@ def compute_threat_list_diff( .. 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 webrisk_v1 def sample_compute_threat_list_diff(): @@ -549,6 +556,13 @@ def search_uris( .. 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 webrisk_v1 def sample_search_uris(): @@ -653,6 +667,13 @@ def search_hashes( .. 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 webrisk_v1 def sample_search_hashes(): @@ -760,6 +781,13 @@ def create_submission( .. 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 webrisk_v1 def sample_create_submission(): diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/async_client.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/async_client.py index 988f9262726f..9859d9217395 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/async_client.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/async_client.py @@ -222,6 +222,13 @@ async def compute_threat_list_diff( .. 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 webrisk_v1beta1 async def sample_compute_threat_list_diff(): @@ -338,6 +345,13 @@ async def search_uris( .. 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 webrisk_v1beta1 async def sample_search_uris(): @@ -451,6 +465,13 @@ async def search_hashes( .. 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 webrisk_v1beta1 async def sample_search_hashes(): diff --git a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/client.py b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/client.py index c7be8baa3e1f..287eaa43a212 100644 --- a/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/client.py +++ b/packages/google-cloud-webrisk/google/cloud/webrisk_v1beta1/services/web_risk_service_v1_beta1/client.py @@ -424,6 +424,13 @@ def compute_threat_list_diff( .. 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 webrisk_v1beta1 def sample_compute_threat_list_diff(): @@ -530,6 +537,13 @@ def search_uris( .. 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 webrisk_v1beta1 def sample_search_uris(): @@ -633,6 +647,13 @@ def search_hashes( .. 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 webrisk_v1beta1 def sample_search_hashes(): diff --git a/packages/google-cloud-webrisk/mypy.ini b/packages/google-cloud-webrisk/mypy.ini index 4505b485436b..574c5aed394b 100644 --- a/packages/google-cloud-webrisk/mypy.ini +++ b/packages/google-cloud-webrisk/mypy.ini @@ -1,3 +1,3 @@ [mypy] -python_version = 3.6 +python_version = 3.7 namespace_packages = True diff --git a/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1.json b/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1.json index 2795ac3ebffb..32eef235f5d3 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1.json +++ b/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1.json @@ -67,33 +67,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_ComputeThreatListDiff_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -155,33 +155,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_ComputeThreatListDiff_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -240,33 +240,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_CreateSubmission_async", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 43, + "end": 52, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -324,33 +324,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_CreateSubmission_sync", "segments": [ { - "end": 48, + "end": 55, "start": 27, "type": "FULL" }, { - "end": 48, + "end": 55, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 42, - "start": 34, + "end": 49, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 45, - "start": 43, + "end": 52, + "start": 50, "type": "REQUEST_EXECUTION" }, { - "end": 49, - "start": 46, + "end": 56, + "start": 53, "type": "RESPONSE_HANDLING" } ], @@ -409,33 +409,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_SearchHashes_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -493,33 +493,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_SearchHashes_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -578,33 +578,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_SearchUris_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" } ], @@ -662,33 +662,33 @@ "regionTag": "webrisk_v1_generated_WebRiskService_SearchUris_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" } ], diff --git a/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1beta1.json b/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1beta1.json index b0e63ce14a0d..02fb48626e27 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1beta1.json +++ b/packages/google-cloud-webrisk/samples/generated_samples/snippet_metadata_webrisk_v1beta1.json @@ -67,33 +67,33 @@ "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_ComputeThreatListDiff_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -155,33 +155,33 @@ "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_ComputeThreatListDiff_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -240,33 +240,33 @@ "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchHashes_async", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -324,33 +324,33 @@ "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchHashes_sync", "segments": [ { - "end": 44, + "end": 51, "start": 27, "type": "FULL" }, { - "end": 44, + "end": 51, "start": 27, "type": "SHORT" }, { - "end": 33, - "start": 31, + "end": 40, + "start": 38, "type": "CLIENT_INITIALIZATION" }, { - "end": 38, - "start": 34, + "end": 45, + "start": 41, "type": "REQUEST_INITIALIZATION" }, { - "end": 41, - "start": 39, + "end": 48, + "start": 46, "type": "REQUEST_EXECUTION" }, { - "end": 45, - "start": 42, + "end": 52, + "start": 49, "type": "RESPONSE_HANDLING" } ], @@ -409,33 +409,33 @@ "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchUris_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" } ], @@ -493,33 +493,33 @@ "regionTag": "webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchUris_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" } ], diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_async.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_async.py index b8532bc1e940..c722a4db2b05 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_async.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_async.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_ComputeThreatListDiff_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_sync.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_sync.py index d2dc66e1e90c..79c0ef9128ad 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_sync.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_compute_threat_list_diff_sync.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_ComputeThreatListDiff_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_async.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_async.py index 97e0d1fab892..adede368e79f 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_async.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_async.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_CreateSubmission_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_sync.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_sync.py index 3c95b85e056d..c6d4a6c204ae 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_sync.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_create_submission_sync.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_CreateSubmission_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_async.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_async.py index c03414cc7b5d..e498e75d7cf2 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_async.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_async.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_SearchHashes_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_sync.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_sync.py index 401ae52114b5..7c3003ef2810 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_sync.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_hashes_sync.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_SearchHashes_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_async.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_async.py index f7e59877901f..ce3caa60e4c9 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_async.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_async.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_SearchUris_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_sync.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_sync.py index 3bec8902e009..00ac60e3ad97 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_sync.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1_generated_web_risk_service_search_uris_sync.py @@ -24,6 +24,13 @@ # [START webrisk_v1_generated_WebRiskService_SearchUris_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 webrisk_v1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_async.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_async.py index b955bd6ac9bd..fd82552bf590 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_async.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_async.py @@ -24,6 +24,13 @@ # [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_ComputeThreatListDiff_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 webrisk_v1beta1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_sync.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_sync.py index 356931f0d398..ffab81bd7f95 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_sync.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_compute_threat_list_diff_sync.py @@ -24,6 +24,13 @@ # [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_ComputeThreatListDiff_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 webrisk_v1beta1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_async.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_async.py index f351261d8376..701a541128b8 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_async.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_async.py @@ -24,6 +24,13 @@ # [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchHashes_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 webrisk_v1beta1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_sync.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_sync.py index c5d931e1cc52..caff7aca0372 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_sync.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_hashes_sync.py @@ -24,6 +24,13 @@ # [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchHashes_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 webrisk_v1beta1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_async.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_async.py index ba04a7112d38..97707aa08d40 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_async.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_async.py @@ -24,6 +24,13 @@ # [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchUris_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 webrisk_v1beta1 diff --git a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_sync.py b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_sync.py index fd9399aeee64..b2afe233b1e8 100644 --- a/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_sync.py +++ b/packages/google-cloud-webrisk/samples/generated_samples/webrisk_v1beta1_generated_web_risk_service_v1_beta1_search_uris_sync.py @@ -24,6 +24,13 @@ # [START webrisk_v1beta1_generated_WebRiskServiceV1Beta1_SearchUris_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 webrisk_v1beta1