google-cloud-web_risk-v1beta1 0.7.0 → 0.8.0

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: c8c8c8e3ed09d1a97c069edd9d42b21766a101b043faf19dad1b55d361c984dc
4
- data.tar.gz: c5bebffb33dd79bf932e898516f642dd5bb7dbd33fa091356d42ebfa69de4de3
3
+ metadata.gz: f8d774a5d499b6ca2cbd0a0d651fd181c71221f4969181dd8a22154ed85143b8
4
+ data.tar.gz: 765dea79f3d05b1e1d91d6e62d0d49c87bb4d00d03b3c5427efda6d50865f161
5
5
  SHA512:
6
- metadata.gz: ea1d4f08c14b9661cddf554aa2686317b0b5f8f27f0b00f059c64e22b0142f61d550273729316211ad85c1cda6ed409ae74414443c8c87ab7110d0afc24db408
7
- data.tar.gz: ade171a510ba221a94f638325191a8515f16fe85bced245323a1aefbca40e39f412462a9d30c54359e7c45cd95a09044a7f9a138b326c8b32629965cbf7f45bd
6
+ metadata.gz: f658198096ee31bf7699a6b46c15cf1b2b5f642d99389c54ea06a66bcbc9c0c5765350bee07a1d40664831a69e721cd156dd0806da079b197fbbad4b4814588a
7
+ data.tar.gz: 2c4880fafb2f3cbbf7047c126d5df9ee3ca38bfd3c86e6b4ece01d21e73a42c19884369c84806ff0d4f0311343d180dc0a2524e8f2ac7b2e685aaa5c939e95cc
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1beta1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -137,7 +137,7 @@ module Google
137
137
  credentials = @config.credentials
138
138
  # Use self-signed JWT if the endpoint is unchanged from default,
139
139
  # but only if the default endpoint does not have a region prefix.
140
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
140
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
141
  !@config.endpoint.split(".").first.include?("-")
142
142
  credentials ||= Credentials.default scope: @config.scope,
143
143
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -152,7 +152,8 @@ module Google
152
152
  credentials: credentials,
153
153
  endpoint: @config.endpoint,
154
154
  channel_args: @config.channel_args,
155
- interceptors: @config.interceptors
155
+ interceptors: @config.interceptors,
156
+ channel_pool_config: @config.channel_pool
156
157
  )
157
158
  end
158
159
 
@@ -485,7 +486,9 @@ module Google
485
486
  class Configuration
486
487
  extend ::Gapic::Config
487
488
 
488
- config_attr :endpoint, "webrisk.googleapis.com", ::String
489
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
490
+
491
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
489
492
  config_attr :credentials, nil do |value|
490
493
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
491
494
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -520,6 +523,14 @@ module Google
520
523
  end
521
524
  end
522
525
 
526
+ ##
527
+ # Configuration for the channel pool
528
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
529
+ #
530
+ def channel_pool
531
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
532
+ end
533
+
523
534
  ##
524
535
  # Configuration RPC class for the WebRiskService API.
525
536
  #
@@ -133,7 +133,7 @@ module Google
133
133
  credentials = @config.credentials
134
134
  # Use self-signed JWT if the endpoint is unchanged from default,
135
135
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
136
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
137
137
  !@config.endpoint.split(".").first.include?("-")
138
138
  credentials ||= Credentials.default scope: @config.scope,
139
139
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -181,6 +181,22 @@ module Google
181
181
  # @return [::Google::Cloud::WebRisk::V1beta1::ComputeThreatListDiffResponse]
182
182
  #
183
183
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
184
+ #
185
+ # @example Basic example
186
+ # require "google/cloud/web_risk/v1beta1"
187
+ #
188
+ # # Create a client object. The client can be reused for multiple calls.
189
+ # client = Google::Cloud::WebRisk::V1beta1::WebRiskService::Rest::Client.new
190
+ #
191
+ # # Create a request. To set request fields, pass in keyword arguments.
192
+ # request = Google::Cloud::WebRisk::V1beta1::ComputeThreatListDiffRequest.new
193
+ #
194
+ # # Call the compute_threat_list_diff method.
195
+ # result = client.compute_threat_list_diff request
196
+ #
197
+ # # The returned object is of type Google::Cloud::WebRisk::V1beta1::ComputeThreatListDiffResponse.
198
+ # p result
199
+ #
184
200
  def compute_threat_list_diff request, options = nil
185
201
  raise ::ArgumentError, "request must be provided" if request.nil?
186
202
 
@@ -245,6 +261,22 @@ module Google
245
261
  # @return [::Google::Cloud::WebRisk::V1beta1::SearchUrisResponse]
246
262
  #
247
263
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
264
+ #
265
+ # @example Basic example
266
+ # require "google/cloud/web_risk/v1beta1"
267
+ #
268
+ # # Create a client object. The client can be reused for multiple calls.
269
+ # client = Google::Cloud::WebRisk::V1beta1::WebRiskService::Rest::Client.new
270
+ #
271
+ # # Create a request. To set request fields, pass in keyword arguments.
272
+ # request = Google::Cloud::WebRisk::V1beta1::SearchUrisRequest.new
273
+ #
274
+ # # Call the search_uris method.
275
+ # result = client.search_uris request
276
+ #
277
+ # # The returned object is of type Google::Cloud::WebRisk::V1beta1::SearchUrisResponse.
278
+ # p result
279
+ #
248
280
  def search_uris request, options = nil
249
281
  raise ::ArgumentError, "request must be provided" if request.nil?
250
282
 
@@ -314,6 +346,22 @@ module Google
314
346
  # @return [::Google::Cloud::WebRisk::V1beta1::SearchHashesResponse]
315
347
  #
316
348
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
349
+ #
350
+ # @example Basic example
351
+ # require "google/cloud/web_risk/v1beta1"
352
+ #
353
+ # # Create a client object. The client can be reused for multiple calls.
354
+ # client = Google::Cloud::WebRisk::V1beta1::WebRiskService::Rest::Client.new
355
+ #
356
+ # # Create a request. To set request fields, pass in keyword arguments.
357
+ # request = Google::Cloud::WebRisk::V1beta1::SearchHashesRequest.new
358
+ #
359
+ # # Call the search_hashes method.
360
+ # result = client.search_hashes request
361
+ #
362
+ # # The returned object is of type Google::Cloud::WebRisk::V1beta1::SearchHashesResponse.
363
+ # p result
364
+ #
317
365
  def search_hashes request, options = nil
318
366
  raise ::ArgumentError, "request must be provided" if request.nil?
319
367
 
@@ -422,7 +470,9 @@ module Google
422
470
  class Configuration
423
471
  extend ::Gapic::Config
424
472
 
425
- config_attr :endpoint, "webrisk.googleapis.com", ::String
473
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
474
+
475
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
426
476
  config_attr :credentials, nil do |value|
427
477
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
428
478
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_compute_threat_list_diff_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_search_uris_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_search_hashes_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -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-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.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-05-31 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.0
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.0
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  - !ruby/object:Gem::Version
210
210
  version: '0'
211
211
  requirements: []
212
- rubygems_version: 3.4.2
212
+ rubygems_version: 3.4.19
213
213
  signing_key:
214
214
  specification_version: 4
215
215
  summary: API Client library for the Web Risk V1beta1 API