google-cloud-web_risk-v1beta1 0.2.0 → 0.2.5

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: 60a533cd16751a76e34a16aca3e4dd8cf8ed38078ba33047d15ffe24efa32185
4
- data.tar.gz: 4a925bda19da59857cce12c330f24d7fbafc755daae274426b3f75a1ec8222b7
3
+ metadata.gz: e6e07a0c6ebfd77bdca0e381906639b2ebfa14f294582d920697463f84f5ffc0
4
+ data.tar.gz: f6a8818ab72dcff239546a4199d2e047990219eb27636f822ff411b5057c9dc9
5
5
  SHA512:
6
- metadata.gz: 9c0417a82d98a2e02f6ea8603b03751af4805326c1e48dd1555d4d7db28ce845b1f1f4c7364ef1c6f5f6e1ec71616c404cce747b7933d0edb5e5a4202112e84a
7
- data.tar.gz: c7700fd2877f7695e4678af4a9839ffdb179bbab4b8cee46e9c627181d5b453f40a3bffcd4db076fad71d421c93b3b44f7b808855bd2896c02b330a3d831e926
6
+ metadata.gz: 882cf9f00a4445b8341a8de6ed8aeea645d8f6703bf1f5cb11b3c0b8a0338084f15fa36a4225fdce4cdc81bb81df98c360417b30b8e7cd4186f9651640556a28
7
+ data.tar.gz: 3fb4d0ad4436a041c0ea56346dd315dc22ad28f97406ff9542904b842d996f6d3f8e29cb65aa05d61cc5ca1b65e3c17088722e77ad68e9b5bc1a3634aa8732ff
data/README.md CHANGED
@@ -18,6 +18,7 @@ In order to use this library, you first need to go through the following steps:
18
18
 
19
19
  1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
20
20
  1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
21
+ 1. [Enable the API.](https://console.cloud.google.com/apis/library/webrisk.googleapis.com)
21
22
  1. {file:AUTHENTICATION.md Set up authentication.}
22
23
 
23
24
  ## Quick Start
@@ -33,6 +34,9 @@ response = client.compute_threat_list_diff request
33
34
  View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-web_risk-v1beta1/latest)
34
35
  for class and method documentation.
35
36
 
37
+ See also the [Product Documentation](https://cloud.google.com/web-risk)
38
+ for general usage information.
39
+
36
40
  ## Enabling Logging
37
41
 
38
42
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1beta1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
@@ -25,24 +25,24 @@ module Google
25
25
  module V1beta1
26
26
  module WebRiskService
27
27
  ##
28
- # Client for the WebRiskServiceV1Beta1 service.
28
+ # Client for the WebRiskService service.
29
29
  #
30
30
  # Web Risk v1beta1 API defines an interface to detect malicious URLs on your
31
31
  # website and in client applications.
32
32
  #
33
33
  class Client
34
34
  # @private
35
- attr_reader :web_risk_service_v1_beta1_stub
35
+ attr_reader :web_risk_service_stub
36
36
 
37
37
  ##
38
- # Configure the WebRiskServiceV1Beta1 Client class.
38
+ # Configure the WebRiskService Client class.
39
39
  #
40
40
  # See {::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client::Configuration}
41
41
  # for a description of the configuration fields.
42
42
  #
43
43
  # ## Example
44
44
  #
45
- # To modify the configuration for all WebRiskServiceV1Beta1 clients:
45
+ # To modify the configuration for all WebRiskService clients:
46
46
  #
47
47
  # ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.configure do |config|
48
48
  # config.timeout = 10.0
@@ -69,7 +69,7 @@ module Google
69
69
  initial_delay: 0.1,
70
70
  max_delay: 60.0,
71
71
  multiplier: 1.3,
72
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
72
+ retry_codes: [4, 14]
73
73
  }
74
74
 
75
75
  default_config.rpcs.search_uris.timeout = 600.0
@@ -77,7 +77,7 @@ module Google
77
77
  initial_delay: 0.1,
78
78
  max_delay: 60.0,
79
79
  multiplier: 1.3,
80
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
80
+ retry_codes: [4, 14]
81
81
  }
82
82
 
83
83
  default_config.rpcs.search_hashes.timeout = 600.0
@@ -85,7 +85,7 @@ module Google
85
85
  initial_delay: 0.1,
86
86
  max_delay: 60.0,
87
87
  multiplier: 1.3,
88
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
88
+ retry_codes: [4, 14]
89
89
  }
90
90
 
91
91
  default_config
@@ -95,7 +95,7 @@ module Google
95
95
  end
96
96
 
97
97
  ##
98
- # Configure the WebRiskServiceV1Beta1 Client instance.
98
+ # Configure the WebRiskService Client instance.
99
99
  #
100
100
  # The configuration is set to the derived mode, meaning that values can be changed,
101
101
  # but structural changes (adding new fields, etc.) are not allowed. Structural changes
@@ -115,23 +115,23 @@ module Google
115
115
  end
116
116
 
117
117
  ##
118
- # Create a new WebRiskServiceV1Beta1 client object.
118
+ # Create a new WebRiskService client object.
119
119
  #
120
120
  # ## Examples
121
121
  #
122
- # To create a new WebRiskServiceV1Beta1 client with the default
122
+ # To create a new WebRiskService client with the default
123
123
  # configuration:
124
124
  #
125
125
  # client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new
126
126
  #
127
- # To create a new WebRiskServiceV1Beta1 client with a custom
127
+ # To create a new WebRiskService client with a custom
128
128
  # configuration:
129
129
  #
130
130
  # client = ::Google::Cloud::WebRisk::V1beta1::WebRiskService::Client.new do |config|
131
131
  # config.timeout = 10.0
132
132
  # end
133
133
  #
134
- # @yield [config] Configure the WebRiskServiceV1Beta1 client.
134
+ # @yield [config] Configure the WebRiskService client.
135
135
  # @yieldparam config [Client::Configuration]
136
136
  #
137
137
  def initialize
@@ -156,7 +156,7 @@ module Google
156
156
  @quota_project_id = @config.quota_project
157
157
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
158
158
 
159
- @web_risk_service_v1_beta1_stub = ::Gapic::ServiceStub.new(
159
+ @web_risk_service_stub = ::Gapic::ServiceStub.new(
160
160
  ::Google::Cloud::WebRisk::V1beta1::WebRiskServiceV1Beta1::Stub,
161
161
  credentials: credentials,
162
162
  endpoint: @config.endpoint,
@@ -224,7 +224,7 @@ module Google
224
224
  options.apply_defaults metadata: @config.metadata,
225
225
  retry_policy: @config.retry_policy
226
226
 
227
- @web_risk_service_v1_beta1_stub.call_rpc :compute_threat_list_diff, request, options: options do |response, operation|
227
+ @web_risk_service_stub.call_rpc :compute_threat_list_diff, request, options: options do |response, operation|
228
228
  yield response, operation if block_given?
229
229
  return response
230
230
  end
@@ -286,7 +286,7 @@ module Google
286
286
  options.apply_defaults metadata: @config.metadata,
287
287
  retry_policy: @config.retry_policy
288
288
 
289
- @web_risk_service_v1_beta1_stub.call_rpc :search_uris, request, options: options do |response, operation|
289
+ @web_risk_service_stub.call_rpc :search_uris, request, options: options do |response, operation|
290
290
  yield response, operation if block_given?
291
291
  return response
292
292
  end
@@ -353,7 +353,7 @@ module Google
353
353
  options.apply_defaults metadata: @config.metadata,
354
354
  retry_policy: @config.retry_policy
355
355
 
356
- @web_risk_service_v1_beta1_stub.call_rpc :search_hashes, request, options: options do |response, operation|
356
+ @web_risk_service_stub.call_rpc :search_hashes, request, options: options do |response, operation|
357
357
  yield response, operation if block_given?
358
358
  return response
359
359
  end
@@ -362,9 +362,9 @@ module Google
362
362
  end
363
363
 
364
364
  ##
365
- # Configuration class for the WebRiskServiceV1Beta1 API.
365
+ # Configuration class for the WebRiskService API.
366
366
  #
367
- # This class represents the configuration for WebRiskServiceV1Beta1,
367
+ # This class represents the configuration for WebRiskService,
368
368
  # providing control over timeouts, retry behavior, logging, transport
369
369
  # parameters, and other low-level controls. Certain parameters can also be
370
370
  # applied individually to specific RPCs. See
@@ -446,7 +446,7 @@ module Google
446
446
 
447
447
  config_attr :endpoint, "webrisk.googleapis.com", ::String
448
448
  config_attr :credentials, nil do |value|
449
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
449
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
450
450
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
451
451
  allowed.any? { |klass| klass === value }
452
452
  end
@@ -474,13 +474,13 @@ module Google
474
474
  def rpcs
475
475
  @rpcs ||= begin
476
476
  parent_rpcs = nil
477
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
477
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
478
478
  Rpcs.new parent_rpcs
479
479
  end
480
480
  end
481
481
 
482
482
  ##
483
- # Configuration RPC class for the WebRiskServiceV1Beta1 API.
483
+ # Configuration RPC class for the WebRiskService API.
484
484
  #
485
485
  # Includes fields providing the configuration for each RPC in this service.
486
486
  # Each configuration object is of type `Gapic::Config::Method` and includes
@@ -23,7 +23,7 @@ module Google
23
23
  module WebRisk
24
24
  module V1beta1
25
25
  module WebRiskService
26
- # Credentials for the WebRiskServiceV1Beta1 API.
26
+ # Credentials for the WebRiskService API.
27
27
  class Credentials < ::Google::Auth::Credentials
28
28
  self.scope = [
29
29
  "https://www.googleapis.com/auth/cloud-platform"
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.2.0
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-20 00:00:00.000000000 Z
11
+ date: 2020-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0.3'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
26
+ version: '0.3'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: google-cloud-errors
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  requirements: []
196
- rubygems_version: 3.0.6
196
+ rubygems_version: 3.1.3
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: API Client library for the Web Risk V1beta1 API