google-cloud-web_risk-v1 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 424f0ccbe950e1158aa54bdf777528a6bf3d6974ba8459075a1b4024b629e51b
4
- data.tar.gz: aa5fd06b84bf5ea2a2d14f9c2ff7c4ec76a480f8065ea9d2d8a3aaade122fc4d
3
+ metadata.gz: 2c97449359e074ec74488e11f75c4c4011b3b81cc13134c42fd601c4cac5ec1a
4
+ data.tar.gz: 898043f5c3eef97de24bf031f53323e9ca19c86f89832eb33e0ce2327b54addc
5
5
  SHA512:
6
- metadata.gz: b15ff974b12cb961caf814a43a43e17ebae68459329cd8272a4e8b4904adef178461d11c06191986787d08dc34b431f697bf305e4cc4c4fe633ab25b8e0b3ba9
7
- data.tar.gz: 7e7c3e583eb65e51298c340d0cbe3c71783b567933e3a82530dfc3218bb96ee3883722997a1bb9b5c90861c14b66d0cc7efbfd103730038a0d8bf0090d932c3a
6
+ metadata.gz: 6177428c0ccef84cf161fd43ee5be97a350f4aa043b0356f8fbe6b67b25ebf914b8422e55cd6ec0ec76e0396102fb155481f606056c6f43fe3590c47503d5057
7
+ data.tar.gz: 12f6b5113b359101e6d17b8e523c0c6830845be92d5f7b3af055b2733d79e1cf785aa629ac17823432354e486ba74f4260a3f82556042554a2510fc72b4234a7
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1
24
- VERSION = "0.4.3"
24
+ VERSION = "0.4.4"
25
25
  end
26
26
  end
27
27
  end
@@ -204,6 +204,21 @@ module Google
204
204
  #
205
205
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
206
206
  #
207
+ # @example Basic example
208
+ # require "google/cloud/web_risk/v1"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Cloud::WebRisk::V1::ComputeThreatListDiffRequest.new
215
+ #
216
+ # # Call the compute_threat_list_diff method.
217
+ # result = client.compute_threat_list_diff request
218
+ #
219
+ # # The returned object is of type Google::Cloud::WebRisk::V1::ComputeThreatListDiffResponse.
220
+ # p result
221
+ #
207
222
  def compute_threat_list_diff request, options = nil
208
223
  raise ::ArgumentError, "request must be provided" if request.nil?
209
224
 
@@ -272,6 +287,21 @@ module Google
272
287
  #
273
288
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
274
289
  #
290
+ # @example Basic example
291
+ # require "google/cloud/web_risk/v1"
292
+ #
293
+ # # Create a client object. The client can be reused for multiple calls.
294
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Client.new
295
+ #
296
+ # # Create a request. To set request fields, pass in keyword arguments.
297
+ # request = Google::Cloud::WebRisk::V1::SearchUrisRequest.new
298
+ #
299
+ # # Call the search_uris method.
300
+ # result = client.search_uris request
301
+ #
302
+ # # The returned object is of type Google::Cloud::WebRisk::V1::SearchUrisResponse.
303
+ # p result
304
+ #
275
305
  def search_uris request, options = nil
276
306
  raise ::ArgumentError, "request must be provided" if request.nil?
277
307
 
@@ -341,6 +371,21 @@ module Google
341
371
  #
342
372
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
343
373
  #
374
+ # @example Basic example
375
+ # require "google/cloud/web_risk/v1"
376
+ #
377
+ # # Create a client object. The client can be reused for multiple calls.
378
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Client.new
379
+ #
380
+ # # Create a request. To set request fields, pass in keyword arguments.
381
+ # request = Google::Cloud::WebRisk::V1::SearchHashesRequest.new
382
+ #
383
+ # # Call the search_hashes method.
384
+ # result = client.search_hashes request
385
+ #
386
+ # # The returned object is of type Google::Cloud::WebRisk::V1::SearchHashesResponse.
387
+ # p result
388
+ #
344
389
  def search_hashes request, options = nil
345
390
  raise ::ArgumentError, "request must be provided" if request.nil?
346
391
 
@@ -411,6 +456,21 @@ module Google
411
456
  #
412
457
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
413
458
  #
459
+ # @example Basic example
460
+ # require "google/cloud/web_risk/v1"
461
+ #
462
+ # # Create a client object. The client can be reused for multiple calls.
463
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Client.new
464
+ #
465
+ # # Create a request. To set request fields, pass in keyword arguments.
466
+ # request = Google::Cloud::WebRisk::V1::CreateSubmissionRequest.new
467
+ #
468
+ # # Call the create_submission method.
469
+ # result = client.create_submission request
470
+ #
471
+ # # The returned object is of type Google::Cloud::WebRisk::V1::Submission.
472
+ # p result
473
+ #
414
474
  def create_submission request, options = nil
415
475
  raise ::ArgumentError, "request must be provided" if request.nil?
416
476
 
@@ -428,9 +488,11 @@ module Google
428
488
  gapic_version: ::Google::Cloud::WebRisk::V1::VERSION
429
489
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
490
 
431
- header_params = {
432
- "parent" => request.parent
433
- }
491
+ header_params = {}
492
+ if request.parent
493
+ header_params["parent"] = request.parent
494
+ end
495
+
434
496
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
435
497
  metadata[:"x-goog-request-params"] ||= request_params_header
436
498
 
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/webrisk/v1/webrisk.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/protobuf/timestamp_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/webrisk/v1/webrisk.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.webrisk.v1.ComputeThreatListDiffRequest" do
@@ -28,7 +28,7 @@ module Google
28
28
  # website and in client applications.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-web_risk-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common