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

Commit 324fb3d

Browse files
Integrate Python GAPIC Microgenerator in googleapis. This PR uses using documentai as an example. Depends on googleapis/gapic-generator-python#402
PiperOrigin-RevId: 309824146 Source-Author: Google APIs <noreply@google.com> Source-Date: Mon May 4 15:06:44 2020 -0700 Source-Repo: googleapis/googleapis Source-Sha: e0f9d9e1f9de890db765be46f45ca8490723e3eb Source-Link: googleapis/googleapis@e0f9d9e
1 parent eca6fae commit 324fb3d

File tree

8 files changed

+684
-22
lines changed

8 files changed

+684
-22
lines changed

google/cloud/webrisk_v1/gapic/transports/web_risk_service_grpc_transport.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,14 @@ def search_hashes(self):
163163
def create_submission(self):
164164
"""Return the gRPC stub for :meth:`WebRiskServiceClient.create_submission`.
165165
166-
The maximum size in number of entries. The diff will not contain
167-
more entries than this value. This should be a power of 2 between
168-
2\ **10 and 2**\ 20. If zero, no diff size limit is set.
166+
Creates a Submission of a URI suspected of containing phishing
167+
content to be reviewed. If the result verifies the existence of
168+
malicious phishing content, the site will be added to the `Google's
169+
Social Engineering
170+
lists <https://support.google.com/webmasters/answer/6350487/>`__ in
171+
order to protect users that could get exposed to this threat in the
172+
future. Only projects with CREATE_SUBMISSION_USERS visibility can use
173+
this method.
169174
170175
Returns:
171176
Callable: A callable which accepts the appropriate

google/cloud/webrisk_v1/gapic/web_risk_service_client.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,14 @@ def create_submission(
416416
metadata=None,
417417
):
418418
"""
419-
The maximum size in number of entries. The diff will not contain
420-
more entries than this value. This should be a power of 2 between
421-
2\ **10 and 2**\ 20. If zero, no diff size limit is set.
419+
Creates a Submission of a URI suspected of containing phishing
420+
content to be reviewed. If the result verifies the existence of
421+
malicious phishing content, the site will be added to the `Google's
422+
Social Engineering
423+
lists <https://support.google.com/webmasters/answer/6350487/>`__ in
424+
order to protect users that could get exposed to this threat in the
425+
future. Only projects with CREATE_SUBMISSION_USERS visibility can use
426+
this method.
422427
423428
Example:
424429
>>> from google.cloud import webrisk_v1
@@ -433,10 +438,8 @@ def create_submission(
433438
>>> response = client.create_submission(parent, submission)
434439
435440
Args:
436-
parent (str): The encoded local, lexicographically-sorted list indices, using a
437-
Golomb-Rice encoding. Used for sending compressed removal indices. The
438-
removal indices (uint32) are sorted in ascending order, then delta
439-
encoded and stored as encoded_data.
441+
parent (str): Required. The name of the project that is making the submission.
442+
This string is in the format "projects/{project_number}".
440443
submission (Union[dict, ~google.cloud.webrisk_v1.types.Submission]): Required. The submission that contains the content of the phishing report.
441444
442445
If a dict is provided, it must be of the same form as the protobuf

0 commit comments

Comments
 (0)