google-apis-webrisk_v1 0.17.0 → 0.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6eb09cd3fe6405c6648bcd34347eaffe17647509b1f793b6728ef65bef71e74f
4
- data.tar.gz: 19d818ca67bfa28b3c8e8f78f6292eafb8bd1f7e050945a6b9d8d7f6f82a6a9a
3
+ metadata.gz: 938971c94803ed59e6d29675881dae6ba733d0afc8675bde9c99196c42c1e465
4
+ data.tar.gz: 8086cd3f6997d0acbb6382e1deb75820f16786ecb1ffc1d2655105309a75fd51
5
5
  SHA512:
6
- metadata.gz: 79259570080ef49b1d17a3b2de98de6a05a19ae9ce20d14c080b14c58accc4552a1fb1e95ffef8f2b19bea65067045878e0def927447d3ab52ddf6e23c3a3f6d
7
- data.tar.gz: 16179f2278e82a75ffb308c420b19f27af6b389e9d315733d2cba0d1131f78f7b3a9bdae916fc4b0c5b2de6c157f0c8015ae347598a29708fd4e1f8cc3968fee
6
+ metadata.gz: 930e2ccb52a2e8758e62ef600b9422b30ee16c893f82c0136ed8c32ca21b775f7241011409d439729d73509d63a84853269ba300c37d6a6598d3a485d7c50279
7
+ data.tar.gz: 29e4c72fb58a775e7405d39ba74300a7494c008fbf4da3af5c8c1a6476a6e1c57bd7676ceeea3c49969803cfddd50e6cc260a6ac635dd8060560f6c1b0cac8b5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-webrisk_v1
2
2
 
3
+ ### v0.19.0 (2023-03-19)
4
+
5
+ * Regenerated from discovery document revision 20230304
6
+
7
+ ### v0.18.0 (2023-02-26)
8
+
9
+ * Regenerated using generator version 0.12.0
10
+
3
11
  ### v0.17.0 (2022-10-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20221016
@@ -306,12 +306,6 @@ module Google
306
306
  class GoogleCloudWebriskV1Submission
307
307
  include Google::Apis::Core::Hashable
308
308
 
309
- # ThreatTypes found to be associated with the submitted URI after reviewing it.
310
- # This might be empty if the URI was not added to any list.
311
- # Corresponds to the JSON property `threatTypes`
312
- # @return [Array<String>]
313
- attr_accessor :threat_types
314
-
315
309
  # Required. The URI that is being reported for malicious content to be analyzed.
316
310
  # Corresponds to the JSON property `uri`
317
311
  # @return [String]
@@ -323,61 +317,10 @@ module Google
323
317
 
324
318
  # Update properties of this object
325
319
  def update!(**args)
326
- @threat_types = args[:threat_types] if args.key?(:threat_types)
327
320
  @uri = args[:uri] if args.key?(:uri)
328
321
  end
329
322
  end
330
323
 
331
- # Metadata for the Submit URI long-running operation.
332
- class GoogleCloudWebriskV1SubmitUriMetadata
333
- include Google::Apis::Core::Hashable
334
-
335
- # Creation time of the operation.
336
- # Corresponds to the JSON property `createTime`
337
- # @return [String]
338
- attr_accessor :create_time
339
-
340
- # The state of the operation.
341
- # Corresponds to the JSON property `state`
342
- # @return [String]
343
- attr_accessor :state
344
-
345
- # Latest update time of the operation.
346
- # Corresponds to the JSON property `updateTime`
347
- # @return [String]
348
- attr_accessor :update_time
349
-
350
- def initialize(**args)
351
- update!(**args)
352
- end
353
-
354
- # Update properties of this object
355
- def update!(**args)
356
- @create_time = args[:create_time] if args.key?(:create_time)
357
- @state = args[:state] if args.key?(:state)
358
- @update_time = args[:update_time] if args.key?(:update_time)
359
- end
360
- end
361
-
362
- # Request to send a potentially malicious URI to WebRisk.
363
- class GoogleCloudWebriskV1SubmitUriRequest
364
- include Google::Apis::Core::Hashable
365
-
366
- # Wraps a URI that might be displaying malicious content.
367
- # Corresponds to the JSON property `submission`
368
- # @return [Google::Apis::WebriskV1::GoogleCloudWebriskV1Submission]
369
- attr_accessor :submission
370
-
371
- def initialize(**args)
372
- update!(**args)
373
- end
374
-
375
- # Update properties of this object
376
- def update!(**args)
377
- @submission = args[:submission] if args.key?(:submission)
378
- end
379
- end
380
-
381
324
  # Contains the set of entries to add to a local database. May contain a
382
325
  # combination of compressed and raw data in a single response.
383
326
  class GoogleCloudWebriskV1ThreatEntryAdditions
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module WebriskV1
18
18
  # Version of the google-apis-webrisk_v1 gem
19
- GEM_VERSION = "0.17.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.11.0"
22
+ GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221016"
25
+ REVISION = "20230304"
26
26
  end
27
27
  end
28
28
  end
@@ -82,18 +82,6 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class GoogleCloudWebriskV1SubmitUriMetadata
86
- class Representation < Google::Apis::Core::JsonRepresentation; end
87
-
88
- include Google::Apis::Core::JsonObjectSupport
89
- end
90
-
91
- class GoogleCloudWebriskV1SubmitUriRequest
92
- class Representation < Google::Apis::Core::JsonRepresentation; end
93
-
94
- include Google::Apis::Core::JsonObjectSupport
95
- end
96
-
97
85
  class GoogleCloudWebriskV1ThreatEntryAdditions
98
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
87
 
@@ -220,28 +208,10 @@ module Google
220
208
  class GoogleCloudWebriskV1Submission
221
209
  # @private
222
210
  class Representation < Google::Apis::Core::JsonRepresentation
223
- collection :threat_types, as: 'threatTypes'
224
211
  property :uri, as: 'uri'
225
212
  end
226
213
  end
227
214
 
228
- class GoogleCloudWebriskV1SubmitUriMetadata
229
- # @private
230
- class Representation < Google::Apis::Core::JsonRepresentation
231
- property :create_time, as: 'createTime'
232
- property :state, as: 'state'
233
- property :update_time, as: 'updateTime'
234
- end
235
- end
236
-
237
- class GoogleCloudWebriskV1SubmitUriRequest
238
- # @private
239
- class Representation < Google::Apis::Core::JsonRepresentation
240
- property :submission, as: 'submission', class: Google::Apis::WebriskV1::GoogleCloudWebriskV1Submission, decorator: Google::Apis::WebriskV1::GoogleCloudWebriskV1Submission::Representation
241
-
242
- end
243
- end
244
-
245
215
  class GoogleCloudWebriskV1ThreatEntryAdditions
246
216
  # @private
247
217
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -193,13 +193,7 @@ module Google
193
193
  end
194
194
 
195
195
  # Lists operations that match the specified filter in the request. If the server
196
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
197
- # binding allows API services to override the binding to use different resource
198
- # name schemes, such as `users/*/operations`. To override the binding, API
199
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
200
- # service configuration. For backwards compatibility, the default name includes
201
- # the operations collection id, however overriding users must ensure the name
202
- # binding is the parent resource, without the operations collection id.
196
+ # doesn't support this method, it returns `UNIMPLEMENTED`.
203
197
  # @param [String] name
204
198
  # The name of the operation's parent resource.
205
199
  # @param [String] filter
@@ -278,49 +272,6 @@ module Google
278
272
  execute_or_queue_command(command, &block)
279
273
  end
280
274
 
281
- # Submits a URI suspected of containing malicious content to be reviewed.
282
- # Returns a google.longrunning.Operation which, once the review is complete, is
283
- # updated with its result. You can use the [Pub/Sub API] (https://cloud.google.
284
- # com/pubsub) to receive notifications for the returned Operation. If the result
285
- # verifies the existence of malicious content, the site will be added to the [
286
- # Google's Social Engineering lists] (https://support.google.com/webmasters/
287
- # answer/6350487/) in order to protect users that could get exposed to this
288
- # threat in the future. Only allowlisted projects can use this method during
289
- # Early Access. Please reach out to Sales or your customer engineer to obtain
290
- # access.
291
- # @param [String] parent
292
- # Required. The name of the project that is making the submission. This string
293
- # is in the format "projects/`project_number`".
294
- # @param [Google::Apis::WebriskV1::GoogleCloudWebriskV1SubmitUriRequest] google_cloud_webrisk_v1_submit_uri_request_object
295
- # @param [String] fields
296
- # Selector specifying which fields to include in a partial response.
297
- # @param [String] quota_user
298
- # Available to use for quota purposes for server-side applications. Can be any
299
- # arbitrary string assigned to a user, but should not exceed 40 characters.
300
- # @param [Google::Apis::RequestOptions] options
301
- # Request-specific options
302
- #
303
- # @yield [result, err] Result & error if block supplied
304
- # @yieldparam result [Google::Apis::WebriskV1::GoogleLongrunningOperation] parsed result object
305
- # @yieldparam err [StandardError] error object if request failed
306
- #
307
- # @return [Google::Apis::WebriskV1::GoogleLongrunningOperation]
308
- #
309
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
310
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
311
- # @raise [Google::Apis::AuthorizationError] Authorization is required
312
- def submit_project_uri(parent, google_cloud_webrisk_v1_submit_uri_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
313
- command = make_simple_command(:post, 'v1/{+parent}/uris:submit', options)
314
- command.request_representation = Google::Apis::WebriskV1::GoogleCloudWebriskV1SubmitUriRequest::Representation
315
- command.request_object = google_cloud_webrisk_v1_submit_uri_request_object
316
- command.response_representation = Google::Apis::WebriskV1::GoogleLongrunningOperation::Representation
317
- command.response_class = Google::Apis::WebriskV1::GoogleLongrunningOperation
318
- command.params['parent'] = parent unless parent.nil?
319
- command.query['fields'] = fields unless fields.nil?
320
- command.query['quotaUser'] = quota_user unless quota_user.nil?
321
- execute_or_queue_command(command, &block)
322
- end
323
-
324
275
  # Gets the most recent threat list diffs. These diffs should be applied to a
325
276
  # local database of hashes to keep it up-to-date. If the local database is empty
326
277
  # or excessively out-of-date, a complete snapshot of the database will be
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-webrisk_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-31 00:00:00.000000000 Z
11
+ date: 2023-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.9.1
19
+ version: 0.11.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.9.1
29
+ version: 0.11.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-webrisk_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-webrisk_v1/v0.17.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-webrisk_v1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-webrisk_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Web Risk API V1