@@ -323,8 +323,8 @@ def search_uris(
323323
324324 def search_hashes (
325325 self ,
326+ threat_types ,
326327 hash_prefix = None ,
327- threat_types = None ,
328328 retry = google .api_core .gapic_v1 .method .DEFAULT ,
329329 timeout = google .api_core .gapic_v1 .method .DEFAULT ,
330330 metadata = None ,
@@ -338,15 +338,19 @@ def search_hashes(
338338
339339 Example:
340340 >>> from google.cloud import webrisk_v1beta1
341+ >>> from google.cloud.webrisk_v1beta1 import enums
341342 >>>
342343 >>> client = webrisk_v1beta1.WebRiskServiceV1Beta1Client()
343344 >>>
344- >>> response = client.search_hashes()
345+ >>> # TODO: Initialize `threat_types`:
346+ >>> threat_types = []
347+ >>>
348+ >>> response = client.search_hashes(threat_types)
345349
346350 Args:
351+ threat_types (list[~google.cloud.webrisk_v1beta1.types.ThreatType]): Required. The ThreatLists to search in.
347352 hash_prefix (bytes): A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
348353 hash. For JSON requests, this field is base64-encoded.
349- threat_types (list[~google.cloud.webrisk_v1beta1.types.ThreatType]): Required. The ThreatLists to search in.
350354 retry (Optional[google.api_core.retry.Retry]): A retry object used
351355 to retry requests. If ``None`` is specified, requests will
352356 be retried using a default configuration.
@@ -378,7 +382,7 @@ def search_hashes(
378382 )
379383
380384 request = webrisk_pb2 .SearchHashesRequest (
381- hash_prefix = hash_prefix , threat_types = threat_types
385+ threat_types = threat_types , hash_prefix = hash_prefix
382386 )
383387 return self ._inner_api_calls ["search_hashes" ](
384388 request , retry = retry , timeout = timeout , metadata = metadata
0 commit comments