google-cloud-recaptcha_enterprise-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: b91a5ef6dfd69b1de193e958e54fcc2aaeaa805b95795c1a8b656b910b27af36
4
- data.tar.gz: 1bb7f435b8f30d440b4e6ff2a6b6471a94b90d92c57142b99c26a40003dd3e52
3
+ metadata.gz: 01ed33f199b31d19c80a27224e17bf38431072fc54dac34ff6607da4a4d97551
4
+ data.tar.gz: 15b613a2363472f2772f69f8361fa2042b4345950f81bd075ff456cfe51f8df9
5
5
  SHA512:
6
- metadata.gz: d7fd5655e90dcc75139cda3f6e89bd2b034899d2f831b4ccd1b43c28f7661008ad3e072a0cb13d19ee521203b587851ef69f2913981d143d8c8a61583b6602ce
7
- data.tar.gz: 629decdc3f3fe9847a242ccbb5f735e2919708b48d1bba79ee25dd5c2458cb2ecc6a4e8f38a4d60d9f911200454df1e341c35d28f792432a0f69945690a4c1c2
6
+ metadata.gz: c1a6b01264b8cdc17ab4a6c89b2271f239544b9182e17abfee194ffbd90f8fe2df1c3a53dd60850ff4a9560dea39303b4882122771c2b88677636721b73180cf
7
+ data.tar.gz: 33caeaaf56344eb51700a912122149805b43a6235d537d37f035a041a39763ad3becde36d2d7b5e968e20af4e91796d0f15859e027223e5c5efe09f3511bcb36
@@ -144,7 +144,8 @@ module Google
144
144
  if credentials.is_a?(String) || credentials.is_a?(Hash)
145
145
  credentials = Credentials.new credentials, scope: @config.scope
146
146
  end
147
- @quota_project_id = credentials.respond_to?(:quota_project_id) ? credentials.quota_project_id : nil
147
+ @quota_project_id = @config.quota_project
148
+ @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
148
149
 
149
150
  @recaptcha_enterprise_service_stub = ::Gapic::ServiceStub.new(
150
151
  ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Stub,
@@ -718,24 +719,28 @@ module Google
718
719
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
719
720
  # trigger a retry.
720
721
  # @return [::Hash]
722
+ # @!attribute [rw] quota_project
723
+ # A separate project against which to charge quota.
724
+ # @return [::String]
721
725
  #
722
726
  class Configuration
723
727
  extend ::Gapic::Config
724
728
 
725
- config_attr :endpoint, "recaptchaenterprise.googleapis.com", String
726
- config_attr :credentials, nil do |value|
729
+ config_attr :endpoint, "recaptchaenterprise.googleapis.com", ::String
730
+ config_attr :credentials, nil do |value|
727
731
  allowed = [::String, ::Hash, ::Proc, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
728
732
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
729
733
  allowed.any? { |klass| klass === value }
730
734
  end
731
- config_attr :scope, nil, ::String, ::Array, nil
732
- config_attr :lib_name, nil, ::String, nil
733
- config_attr :lib_version, nil, ::String, nil
734
- config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
735
- config_attr :interceptors, nil, ::Array, nil
736
- config_attr :timeout, nil, ::Numeric, nil
737
- config_attr :metadata, nil, ::Hash, nil
738
- config_attr :retry_policy, nil, ::Hash, Proc, nil
735
+ config_attr :scope, nil, ::String, ::Array, nil
736
+ config_attr :lib_name, nil, ::String, nil
737
+ config_attr :lib_version, nil, ::String, nil
738
+ config_attr(:channel_args, { "grpc.service_config_disable_resolution"=>1 }, ::Hash, nil)
739
+ config_attr :interceptors, nil, ::Array, nil
740
+ config_attr :timeout, nil, ::Numeric, nil
741
+ config_attr :metadata, nil, ::Hash, nil
742
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
743
+ config_attr :quota_project, nil, ::String, nil
739
744
 
740
745
  # @private
741
746
  def initialize parent_config = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecaptchaEnterprise
23
23
  module V1
24
- VERSION = "0.1.1"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recaptcha_enterprise-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