google-cloud-web_risk-v1 0.1.1 → 0.2.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: dd3d038c6f9681db512fa9303fedf7b5809e119ce7e3ac0801897e41e58e040c
4
- data.tar.gz: eb593e104c712264a4560f06092c494547ba0a9b1da0044658bd9986041ae6c6
3
+ metadata.gz: b93b259a800b475b6e7cdde01eb9bd595ca3861254aa6899031a300c8bd69231
4
+ data.tar.gz: bd6fba6c7f2d94e14b810c4fbc4432a8071813a7498818f01efb1a0f1f202331
5
5
  SHA512:
6
- metadata.gz: ec0d08659eba5a4ab9e72bd7d6702c0f58c303c17623cbecffe0ace7b0c08d2687c3e96a987f2456256a0b5a813f2c4afd342460210fc90013f88da980846772
7
- data.tar.gz: 8b90fbe567a6dc7ccc2e186fdb00d4bfe3d6e792c040056c3164d134d205a0f1abe030cce337e6e57cfd7fd85a9012adef32d0b47af9f0e19f77723ff3c782dc
6
+ metadata.gz: 0e81dbf6a1dd0bbf818be38cdc44292abe8d72c746b5839079e95fa56fb0cfd6f5fa84eaa07f20ea2c3fa208468baa85013d79e39e6a91fecc670fedc93897ab
7
+ data.tar.gz: 511076f92b41a9441f637c0a360fc59bbd3e900ef1a1210a960c47d19bc50911d61fa089a3069b00ba05c7764909b0f9c8e060f202ddd7ed6901ca9c86a3157c
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -155,7 +155,8 @@ module Google
155
155
  if credentials.is_a?(String) || credentials.is_a?(Hash)
156
156
  credentials = Credentials.new credentials, scope: @config.scope
157
157
  end
158
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
158
+ @quota_project_id = @config.quota_project
159
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
159
160
 
160
161
  @web_risk_service_stub = ::Gapic::ServiceStub.new(
161
162
  ::Google::Cloud::WebRisk::V1::WebRiskService::Stub,
@@ -524,24 +525,28 @@ module Google
524
525
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
525
526
  # trigger a retry.
526
527
  # @return [::Hash]
528
+ # @!attribute [rw] quota_project
529
+ # A separate project against which to charge quota.
530
+ # @return [::String]
527
531
  #
528
532
  class Configuration
529
533
  extend ::Gapic::Config
530
534
 
531
- config_attr :endpoint, "webrisk.googleapis.com", String
532
- config_attr :credentials, nil do |value|
535
+ config_attr :endpoint, "webrisk.googleapis.com", ::String
536
+ config_attr :credentials, nil do |value|
533
537
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
534
538
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
535
539
  allowed.any? { |klass| klass === value }
536
540
  end
537
- config_attr :scope, nil, ::String, ::Array, nil
538
- config_attr :lib_name, nil, ::String, nil
539
- config_attr :lib_version, nil, ::String, nil
540
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
541
- config_attr :interceptors, nil, ::Array, nil
542
- config_attr :timeout, nil, ::Numeric, nil
543
- config_attr :metadata, nil, ::Hash, nil
544
- config_attr :retry_policy, nil, ::Hash, Proc, nil
541
+ config_attr :scope, nil, ::String, ::Array, nil
542
+ config_attr :lib_name, nil, ::String, nil
543
+ config_attr :lib_version, nil, ::String, nil
544
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
545
+ config_attr :interceptors, nil, ::Array, nil
546
+ config_attr :timeout, nil, ::Numeric, nil
547
+ config_attr :metadata, nil, ::Hash, nil
548
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
549
+ config_attr :quota_project, nil, ::String, nil
545
550
 
546
551
  # @private
547
552
  def initialize parent_config = nil
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.1.1
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-05 00:00:00.000000000 Z
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.10'
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.10'
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