google-cloud-web_risk-v1 0.2.0 → 0.2.5

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: b93b259a800b475b6e7cdde01eb9bd595ca3861254aa6899031a300c8bd69231
4
- data.tar.gz: bd6fba6c7f2d94e14b810c4fbc4432a8071813a7498818f01efb1a0f1f202331
3
+ metadata.gz: 3fa056ea8c46c89466acb12649d3eb74bca4cd05257690ecdeec8dd99dd0afc2
4
+ data.tar.gz: 5efaad265d89c04c81de5909b819857627e6e939022687196058ef926f7a0819
5
5
  SHA512:
6
- metadata.gz: 0e81dbf6a1dd0bbf818be38cdc44292abe8d72c746b5839079e95fa56fb0cfd6f5fa84eaa07f20ea2c3fa208468baa85013d79e39e6a91fecc670fedc93897ab
7
- data.tar.gz: 511076f92b41a9441f637c0a360fc59bbd3e900ef1a1210a960c47d19bc50911d61fa089a3069b00ba05c7764909b0f9c8e060f202ddd7ed6901ca9c86a3157c
6
+ metadata.gz: a24216600a9ebb3ad97a9974ecde4eff34b67f4a58bc3d165925019f44ffd53e0ddc717adbe4f45debb582b4e793a6aca496e36510f495904141e19edd4dd58d
7
+ data.tar.gz: 3dd58496b9403fd3b95cf4bad09743a7947ca21df852b5f45cd64c7589d6d045cfc938d1b9e267907076d863d27cbef946f97acd8e00a84b17c530f9ceaaaf7b
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-v1/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 V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.2.5"
25
25
  end
26
26
  end
27
27
  end
@@ -71,7 +71,7 @@ module Google
71
71
  initial_delay: 0.1,
72
72
  max_delay: 60.0,
73
73
  multiplier: 1.3,
74
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
74
+ retry_codes: [4, 14]
75
75
  }
76
76
 
77
77
  default_config.rpcs.search_uris.timeout = 600.0
@@ -79,7 +79,7 @@ module Google
79
79
  initial_delay: 0.1,
80
80
  max_delay: 60.0,
81
81
  multiplier: 1.3,
82
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
82
+ retry_codes: [4, 14]
83
83
  }
84
84
 
85
85
  default_config.rpcs.search_hashes.timeout = 600.0
@@ -87,9 +87,11 @@ module Google
87
87
  initial_delay: 0.1,
88
88
  max_delay: 60.0,
89
89
  multiplier: 1.3,
90
- retry_codes: ["DEADLINE_EXCEEDED", "UNAVAILABLE"]
90
+ retry_codes: [4, 14]
91
91
  }
92
92
 
93
+ default_config.rpcs.create_submission.timeout = 60.0
94
+
93
95
  default_config
94
96
  end
95
97
  yield @configure if block_given?
@@ -534,7 +536,7 @@ module Google
534
536
 
535
537
  config_attr :endpoint, "webrisk.googleapis.com", ::String
536
538
  config_attr :credentials, nil do |value|
537
- allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
539
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
538
540
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
539
541
  allowed.any? { |klass| klass === value }
540
542
  end
@@ -562,7 +564,7 @@ module Google
562
564
  def rpcs
563
565
  @rpcs ||= begin
564
566
  parent_rpcs = nil
565
- parent_rpcs = @parent_config.rpcs if @parent_config&.respond_to? :rpcs
567
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config&.respond_to?(:rpcs)
566
568
  Rpcs.new parent_rpcs
567
569
  end
568
570
  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.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
@@ -162,7 +162,6 @@ files:
162
162
  - LICENSE.md
163
163
  - README.md
164
164
  - lib/google-cloud-web_risk-v1.rb
165
- - lib/google/cloud/common_resources_pb.rb
166
165
  - lib/google/cloud/web_risk/v1.rb
167
166
  - lib/google/cloud/web_risk/v1/version.rb
168
167
  - lib/google/cloud/web_risk/v1/web_risk_service.rb
@@ -195,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
194
  - !ruby/object:Gem::Version
196
195
  version: '0'
197
196
  requirements: []
198
- rubygems_version: 3.0.6
197
+ rubygems_version: 3.1.3
199
198
  signing_key:
200
199
  specification_version: 4
201
200
  summary: API Client library for the Web Risk V1 API
@@ -1,15 +0,0 @@
1
- # Generated by the protocol buffer compiler. DO NOT EDIT!
2
- # source: google/cloud/common_resources.proto
3
-
4
- require 'google/protobuf'
5
-
6
- require 'google/api/resource_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_file("google/cloud/common_resources.proto", :syntax => :proto3) do
9
- end
10
- end
11
-
12
- module Google
13
- module Cloud
14
- end
15
- end