Skip to content

Commit 35eec9b

Browse files
feat(webrisk): update the api
#### webrisk:v1 The following keys were deleted: - resources.projects.resources.uris.methods.submit (Total Keys: 12) - schemas.GoogleCloudWebriskV1Submission.properties.threatTypes (Total Keys: 2) - schemas.GoogleCloudWebriskV1SubmitUriMetadata (Total Keys: 7) - schemas.GoogleCloudWebriskV1SubmitUriRequest (Total Keys: 3)
1 parent 5fcc1e9 commit 35eec9b

File tree

4 files changed

+4
-116
lines changed

4 files changed

+4
-116
lines changed

docs/dyn/webrisk_v1.projects.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ <h2>Instance Methods</h2>
8484
</p>
8585
<p class="firstline">Returns the submissions Resource.</p>
8686

87-
<p class="toc_element">
88-
<code><a href="webrisk_v1.projects.uris.html">uris()</a></code>
89-
</p>
90-
<p class="firstline">Returns the uris Resource.</p>
91-
9287
<p class="toc_element">
9388
<code><a href="#close">close()</a></code></p>
9489
<p class="firstline">Close httplib2 connections.</p>

docs/dyn/webrisk_v1.projects.operations.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h2>Instance Methods</h2>
8888
<p class="firstline">Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.</p>
8989
<p class="toc_element">
9090
<code><a href="#list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91-
<p class="firstline">Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.</p>
91+
<p class="firstline">Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.</p>
9292
<p class="toc_element">
9393
<code><a href="#list_next">list_next()</a></code></p>
9494
<p class="firstline">Retrieves the next page of results.</p>
@@ -177,7 +177,7 @@ <h3>Method Details</h3>
177177

178178
<div class="method">
179179
<code class="details" id="list">list(name, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
180-
<pre>Lists operations that match the specified filter in the request. If the server doesn&#x27;t support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `&quot;/v1/{name=users/*}/operations&quot;` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.
180+
<pre>Lists operations that match the specified filter in the request. If the server doesn&#x27;t support this method, it returns `UNIMPLEMENTED`.
181181

182182
Args:
183183
name: string, The name of the operation&#x27;s parent resource. (required)

docs/dyn/webrisk_v1.projects.submissions.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ <h3>Method Details</h3>
9696
The object takes the form of:
9797

9898
{ # Wraps a URI that might be displaying malicious content.
99-
&quot;threatTypes&quot;: [ # ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
100-
&quot;A String&quot;,
101-
],
10299
&quot;uri&quot;: &quot;A String&quot;, # Required. The URI that is being reported for malicious content to be analyzed.
103100
}
104101

@@ -111,9 +108,6 @@ <h3>Method Details</h3>
111108
An object of the form:
112109

113110
{ # Wraps a URI that might be displaying malicious content.
114-
&quot;threatTypes&quot;: [ # ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.
115-
&quot;A String&quot;,
116-
],
117111
&quot;uri&quot;: &quot;A String&quot;, # Required. The URI that is being reported for malicious content to be analyzed.
118112
}</pre>
119113
</div>

googleapiclient/discovery_cache/documents/webrisk.v1.json

Lines changed: 2 additions & 103 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
]
229229
},
230230
"list": {
231-
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as `\"/v1/{name=users/*}/operations\"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must ensure the name binding is the parent resource, without the operations collection id.",
231+
"description": "Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.",
232232
"flatPath": "v1/projects/{projectsId}/operations",
233233
"httpMethod": "GET",
234234
"id": "webrisk.projects.operations.list",
@@ -298,38 +298,6 @@
298298
]
299299
}
300300
}
301-
},
302-
"uris": {
303-
"methods": {
304-
"submit": {
305-
"description": "Submits a URI suspected of containing malicious content to be reviewed. Returns a google.longrunning.Operation which, once the review is complete, is updated with its result. You can use the [Pub/Sub API] (https://cloud.google.com/pubsub) to receive notifications for the returned Operation. If the result verifies the existence of malicious content, the site will be added to the [Google's Social Engineering lists] (https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access.",
306-
"flatPath": "v1/projects/{projectsId}/uris:submit",
307-
"httpMethod": "POST",
308-
"id": "webrisk.projects.uris.submit",
309-
"parameterOrder": [
310-
"parent"
311-
],
312-
"parameters": {
313-
"parent": {
314-
"description": "Required. The name of the project that is making the submission. This string is in the format \"projects/{project_number}\".",
315-
"location": "path",
316-
"pattern": "^projects/[^/]+$",
317-
"required": true,
318-
"type": "string"
319-
}
320-
},
321-
"path": "v1/{+parent}/uris:submit",
322-
"request": {
323-
"$ref": "GoogleCloudWebriskV1SubmitUriRequest"
324-
},
325-
"response": {
326-
"$ref": "GoogleLongrunningOperation"
327-
},
328-
"scopes": [
329-
"https://www.googleapis.com/auth/cloud-platform"
330-
]
331-
}
332-
}
333301
}
334302
}
335303
},
@@ -452,7 +420,7 @@
452420
}
453421
}
454422
},
455-
"revision": "20230226",
423+
"revision": "20230304",
456424
"rootUrl": "https://webrisk.googleapis.com/",
457425
"schemas": {
458426
"GoogleCloudWebriskV1ComputeThreatListDiffResponse": {
@@ -671,82 +639,13 @@
671639
"description": "Wraps a URI that might be displaying malicious content.",
672640
"id": "GoogleCloudWebriskV1Submission",
673641
"properties": {
674-
"threatTypes": {
675-
"description": "ThreatTypes found to be associated with the submitted URI after reviewing it. This might be empty if the URI was not added to any list.",
676-
"items": {
677-
"enum": [
678-
"THREAT_TYPE_UNSPECIFIED",
679-
"MALWARE",
680-
"SOCIAL_ENGINEERING",
681-
"UNWANTED_SOFTWARE",
682-
"SOCIAL_ENGINEERING_EXTENDED_COVERAGE"
683-
],
684-
"enumDescriptions": [
685-
"No entries should match this threat type. This threat type is unused.",
686-
"Malware targeting any platform.",
687-
"Social engineering targeting any platform.",
688-
"Unwanted software targeting any platform.",
689-
"A list of extended coverage social engineering URIs targeting any platform."
690-
],
691-
"type": "string"
692-
},
693-
"type": "array"
694-
},
695642
"uri": {
696643
"description": "Required. The URI that is being reported for malicious content to be analyzed.",
697644
"type": "string"
698645
}
699646
},
700647
"type": "object"
701648
},
702-
"GoogleCloudWebriskV1SubmitUriMetadata": {
703-
"description": "Metadata for the Submit URI long-running operation.",
704-
"id": "GoogleCloudWebriskV1SubmitUriMetadata",
705-
"properties": {
706-
"createTime": {
707-
"description": "Creation time of the operation.",
708-
"format": "google-datetime",
709-
"type": "string"
710-
},
711-
"state": {
712-
"description": "The state of the operation.",
713-
"enum": [
714-
"STATE_UNSPECIFIED",
715-
"RUNNING",
716-
"SUCCEEDED",
717-
"CANCELLED",
718-
"FAILED",
719-
"CLOSED"
720-
],
721-
"enumDescriptions": [
722-
"Default unspecified state.",
723-
"The operation is currently running.",
724-
"The operation finished with a success status.",
725-
"The operation was cancelled.",
726-
"The operation finished with a failure status.",
727-
"The operation was closed with no action taken."
728-
],
729-
"type": "string"
730-
},
731-
"updateTime": {
732-
"description": "Latest update time of the operation.",
733-
"format": "google-datetime",
734-
"type": "string"
735-
}
736-
},
737-
"type": "object"
738-
},
739-
"GoogleCloudWebriskV1SubmitUriRequest": {
740-
"description": "Request to send a potentially malicious URI to WebRisk.",
741-
"id": "GoogleCloudWebriskV1SubmitUriRequest",
742-
"properties": {
743-
"submission": {
744-
"$ref": "GoogleCloudWebriskV1Submission",
745-
"description": "Required. The submission that contains the URI to be scanned."
746-
}
747-
},
748-
"type": "object"
749-
},
750649
"GoogleCloudWebriskV1ThreatEntryAdditions": {
751650
"description": "Contains the set of entries to add to a local database. May contain a combination of compressed and raw data in a single response.",
752651
"id": "GoogleCloudWebriskV1ThreatEntryAdditions",

0 commit comments

Comments
 (0)