google-cloud-web_risk-v1beta1 0.1.1 → 0.2.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 60a533cd16751a76e34a16aca3e4dd8cf8ed38078ba33047d15ffe24efa32185
|
|
4
|
+
data.tar.gz: 4a925bda19da59857cce12c330f24d7fbafc755daae274426b3f75a1ec8222b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9c0417a82d98a2e02f6ea8603b03751af4805326c1e48dd1555d4d7db28ce845b1f1f4c7364ef1c6f5f6e1ec71616c404cce747b7933d0edb5e5a4202112e84a
|
|
7
|
+
data.tar.gz: c7700fd2877f7695e4678af4a9839ffdb179bbab4b8cee46e9c627181d5b453f40a3bffcd4db076fad71d421c93b3b44f7b808855bd2896c02b330a3d831e926
|
|
@@ -153,7 +153,8 @@ module Google
|
|
|
153
153
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
154
154
|
credentials = Credentials.new credentials, scope: @config.scope
|
|
155
155
|
end
|
|
156
|
-
@quota_project_id =
|
|
156
|
+
@quota_project_id = @config.quota_project
|
|
157
|
+
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
|
157
158
|
|
|
158
159
|
@web_risk_service_v1_beta1_stub = ::Gapic::ServiceStub.new(
|
|
159
160
|
::Google::Cloud::WebRisk::V1beta1::WebRiskServiceV1Beta1::Stub,
|
|
@@ -436,24 +437,28 @@ module Google
|
|
|
436
437
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
437
438
|
# trigger a retry.
|
|
438
439
|
# @return [::Hash]
|
|
440
|
+
# @!attribute [rw] quota_project
|
|
441
|
+
# A separate project against which to charge quota.
|
|
442
|
+
# @return [::String]
|
|
439
443
|
#
|
|
440
444
|
class Configuration
|
|
441
445
|
extend ::Gapic::Config
|
|
442
446
|
|
|
443
|
-
config_attr :endpoint,
|
|
444
|
-
config_attr :credentials,
|
|
447
|
+
config_attr :endpoint, "webrisk.googleapis.com", ::String
|
|
448
|
+
config_attr :credentials, nil do |value|
|
|
445
449
|
allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
446
450
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
447
451
|
allowed.any? { |klass| klass === value }
|
|
448
452
|
end
|
|
449
|
-
config_attr :scope,
|
|
450
|
-
config_attr :lib_name,
|
|
451
|
-
config_attr :lib_version,
|
|
452
|
-
config_attr(:channel_args,
|
|
453
|
-
config_attr :interceptors,
|
|
454
|
-
config_attr :timeout,
|
|
455
|
-
config_attr :metadata,
|
|
456
|
-
config_attr :retry_policy,
|
|
453
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
454
|
+
config_attr :lib_name, nil, ::String, nil
|
|
455
|
+
config_attr :lib_version, nil, ::String, nil
|
|
456
|
+
config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
|
|
457
|
+
config_attr :interceptors, nil, ::Array, nil
|
|
458
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
459
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
460
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
461
|
+
config_attr :quota_project, nil, ::String, nil
|
|
457
462
|
|
|
458
463
|
# @private
|
|
459
464
|
def initialize parent_config = nil
|
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.
|
|
4
|
+
version: 0.2.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: 2020-05-
|
|
11
|
+
date: 2020-05-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gapic-common
|
|
@@ -58,14 +58,42 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '5.
|
|
61
|
+
version: '5.14'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '5.
|
|
68
|
+
version: '5.14'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: minitest-focus
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '1.1'
|
|
76
|
+
type: :development
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '1.1'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: minitest-rg
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '5.2'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '5.2'
|
|
69
97
|
- !ruby/object:Gem::Dependency
|
|
70
98
|
name: rake
|
|
71
99
|
requirement: !ruby/object:Gem::Requirement
|