google-cloud-web_risk-v1 0.9.1 → 0.10.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: d52c6b84fe3329181b7d53a27c2a94a03af814428411104c2006d797a62c168d
4
- data.tar.gz: f5860ba32632dbba391faa4cd2f02eb91be0fd8b6cdafee8944dca9d6c3ff573
3
+ metadata.gz: 70eb72af99ccc11cf3116b2113fed6fa777788644ee2adb118e28fd292a16d62
4
+ data.tar.gz: ce00cc28a850ecd07f747661e47994e51b00f4376302d42a4eb033180b2aba00
5
5
  SHA512:
6
- metadata.gz: 9596e5be3f8324a79835725af36da3f44b6cc14594cf31e89363d9c69093f1aca4f200e1ca3d806233c85a976281ff8d451187927f1791ff6cf366317e3bffd0
7
- data.tar.gz: 48fd5435f8523a4f44b1969a4b39278664623de2d4543bcce150056b3d507a5fb603fb5e85f54b4303c6baa81e11b63149012fdb3c43035f88f48f343f97b29c
6
+ metadata.gz: 450b442733828dc77e77fdcdf66d9575c86984917841a6aa6f897652cead86af608364401a0ad2656291d52eac28cfafbbbd35a3925f179d59305e1170569aa1
7
+ data.tar.gz: 8fa33dbd7eb725debe1bf9d9b7dd4638c47a806b2f63884eb10457ee703a8830924275ff417b376c18ade1c5b2dd7d8f5cd60cbc7a7e90f27fdb996f9d8fec65
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1
24
- VERSION = "0.9.1"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -162,7 +162,8 @@ module Google
162
162
  credentials: credentials,
163
163
  endpoint: @config.endpoint,
164
164
  channel_args: @config.channel_args,
165
- interceptors: @config.interceptors
165
+ interceptors: @config.interceptors,
166
+ channel_pool_config: @config.channel_pool
166
167
  )
167
168
  end
168
169
 
@@ -760,6 +761,14 @@ module Google
760
761
  end
761
762
  end
762
763
 
764
+ ##
765
+ # Configuration for the channel pool
766
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
767
+ #
768
+ def channel_pool
769
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
770
+ end
771
+
763
772
  ##
764
773
  # Configuration RPC class for the WebRiskService API.
765
774
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -208,6 +208,22 @@ module Google
208
208
  # @return [::Google::Cloud::WebRisk::V1::ComputeThreatListDiffResponse]
209
209
  #
210
210
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
211
+ #
212
+ # @example Basic example
213
+ # require "google/cloud/web_risk/v1"
214
+ #
215
+ # # Create a client object. The client can be reused for multiple calls.
216
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Rest::Client.new
217
+ #
218
+ # # Create a request. To set request fields, pass in keyword arguments.
219
+ # request = Google::Cloud::WebRisk::V1::ComputeThreatListDiffRequest.new
220
+ #
221
+ # # Call the compute_threat_list_diff method.
222
+ # result = client.compute_threat_list_diff request
223
+ #
224
+ # # The returned object is of type Google::Cloud::WebRisk::V1::ComputeThreatListDiffResponse.
225
+ # p result
226
+ #
211
227
  def compute_threat_list_diff request, options = nil
212
228
  raise ::ArgumentError, "request must be provided" if request.nil?
213
229
 
@@ -277,6 +293,22 @@ module Google
277
293
  # @return [::Google::Cloud::WebRisk::V1::SearchUrisResponse]
278
294
  #
279
295
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
296
+ #
297
+ # @example Basic example
298
+ # require "google/cloud/web_risk/v1"
299
+ #
300
+ # # Create a client object. The client can be reused for multiple calls.
301
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Rest::Client.new
302
+ #
303
+ # # Create a request. To set request fields, pass in keyword arguments.
304
+ # request = Google::Cloud::WebRisk::V1::SearchUrisRequest.new
305
+ #
306
+ # # Call the search_uris method.
307
+ # result = client.search_uris request
308
+ #
309
+ # # The returned object is of type Google::Cloud::WebRisk::V1::SearchUrisResponse.
310
+ # p result
311
+ #
280
312
  def search_uris request, options = nil
281
313
  raise ::ArgumentError, "request must be provided" if request.nil?
282
314
 
@@ -349,6 +381,22 @@ module Google
349
381
  # @return [::Google::Cloud::WebRisk::V1::SearchHashesResponse]
350
382
  #
351
383
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
384
+ #
385
+ # @example Basic example
386
+ # require "google/cloud/web_risk/v1"
387
+ #
388
+ # # Create a client object. The client can be reused for multiple calls.
389
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Rest::Client.new
390
+ #
391
+ # # Create a request. To set request fields, pass in keyword arguments.
392
+ # request = Google::Cloud::WebRisk::V1::SearchHashesRequest.new
393
+ #
394
+ # # Call the search_hashes method.
395
+ # result = client.search_hashes request
396
+ #
397
+ # # The returned object is of type Google::Cloud::WebRisk::V1::SearchHashesResponse.
398
+ # p result
399
+ #
352
400
  def search_hashes request, options = nil
353
401
  raise ::ArgumentError, "request must be provided" if request.nil?
354
402
 
@@ -420,6 +468,22 @@ module Google
420
468
  # @return [::Google::Cloud::WebRisk::V1::Submission]
421
469
  #
422
470
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
471
+ #
472
+ # @example Basic example
473
+ # require "google/cloud/web_risk/v1"
474
+ #
475
+ # # Create a client object. The client can be reused for multiple calls.
476
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Rest::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::WebRisk::V1::CreateSubmissionRequest.new
480
+ #
481
+ # # Call the create_submission method.
482
+ # result = client.create_submission request
483
+ #
484
+ # # The returned object is of type Google::Cloud::WebRisk::V1::Submission.
485
+ # p result
486
+ #
423
487
  def create_submission request, options = nil
424
488
  raise ::ArgumentError, "request must be provided" if request.nil?
425
489
 
@@ -498,6 +562,29 @@ module Google
498
562
  # @return [::Gapic::Operation]
499
563
  #
500
564
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
565
+ #
566
+ # @example Basic example
567
+ # require "google/cloud/web_risk/v1"
568
+ #
569
+ # # Create a client object. The client can be reused for multiple calls.
570
+ # client = Google::Cloud::WebRisk::V1::WebRiskService::Rest::Client.new
571
+ #
572
+ # # Create a request. To set request fields, pass in keyword arguments.
573
+ # request = Google::Cloud::WebRisk::V1::SubmitUriRequest.new
574
+ #
575
+ # # Call the submit_uri method.
576
+ # result = client.submit_uri request
577
+ #
578
+ # # The returned object is of type Gapic::Operation. You can use it to
579
+ # # check the status of an operation, cancel it, or wait for results.
580
+ # # Here is how to wait for a response.
581
+ # result.wait_until_done! timeout: 60
582
+ # if result.response?
583
+ # p result.response
584
+ # else
585
+ # puts "No response received."
586
+ # end
587
+ #
501
588
  def submit_uri request, options = nil
502
589
  raise ::ArgumentError, "request must be provided" if request.nil?
503
590
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
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.9.1
4
+ version: 0.10.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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  - !ruby/object:Gem::Version
217
217
  version: '0'
218
218
  requirements: []
219
- rubygems_version: 3.4.2
219
+ rubygems_version: 3.4.19
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: API Client library for the Web Risk V1 API