google-cloud-recaptcha_enterprise 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: dd1c979e9f4475097f3a4625a2d7586254c2a62dd27469e8ebc1df0c89c96401
4
- data.tar.gz: 5e9f8c95b7fa13cba5cacc846d287d1ebefd99ddca6fa515656c9fd0d48e594f
3
+ metadata.gz: b702594290f6d53dd02a9f0cd483d2f1dac72ac614b0c506d874c4581d154410
4
+ data.tar.gz: 1164b48798e4706da95da57ab2783bcded08d6fa8eb533ed8c9ea5ece258b983
5
5
  SHA512:
6
- metadata.gz: fe6a1b270258392d5603fc075be163fe69e01657c56e84d63179c2291153db8b625395e2ff42bba4c4b5b99bc35ef02df26c751356356c87c1a0f246b3df8f5e
7
- data.tar.gz: d5a9656daf6df440501f1485fb0b5012e2ce1af11f2e617197995d492f3116176faf58cb06a94bf2944b7755bd3bf4a88c05bf64216b237eb40b64cadebe05b3
6
+ metadata.gz: afc3c7c11ea887a24edac433037e9b4543af3ae2d99aca2af77cdaaeec00c77681738d15e5507e8ae0b3894be4d99a3eecc8f0be8372b04b6277b8745d8f8aa9
7
+ data.tar.gz: 2d7b1f148e22d6c0a881d8e78d1eda5d2ad86d820498110cf4af43364d1ded2c6e55c127068365cc4b67f58c884656bbc86a3251b709b36c87b7dfc7982a3800
@@ -119,6 +119,10 @@ module Google
119
119
  # The default timeout, in seconds, for calls made through this client.
120
120
  # @param metadata [Hash]
121
121
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
122
+ # @param service_address [String]
123
+ # Override for the service hostname, or `nil` to leave as the default.
124
+ # @param service_port [Integer]
125
+ # Override for the service port, or `nil` to leave as the default.
122
126
  # @param exception_transformer [Proc]
123
127
  # An optional proc that intercepts any exceptions raised during an API call to inject
124
128
  # custom error handling.
@@ -108,6 +108,10 @@ module Google
108
108
  # The default timeout, in seconds, for calls made through this client.
109
109
  # @param metadata [Hash]
110
110
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
111
+ # @param service_address [String]
112
+ # Override for the service hostname, or `nil` to leave as the default.
113
+ # @param service_port [Integer]
114
+ # Override for the service port, or `nil` to leave as the default.
111
115
  # @param exception_transformer [Proc]
112
116
  # An optional proc that intercepts any exceptions raised during an API call to inject
113
117
  # custom error handling.
@@ -117,6 +121,8 @@ module Google
117
121
  client_config: nil,
118
122
  timeout: nil,
119
123
  metadata: nil,
124
+ service_address: nil,
125
+ service_port: nil,
120
126
  exception_transformer: nil,
121
127
  lib_name: nil,
122
128
  lib_version: nil
@@ -128,6 +134,8 @@ module Google
128
134
  metadata: metadata,
129
135
  exception_transformer: exception_transformer,
130
136
  lib_name: lib_name,
137
+ service_address: service_address,
138
+ service_port: service_port,
131
139
  lib_version: lib_version
132
140
  }.select { |_, v| v != nil }
133
141
  Google::Cloud::RecaptchaEnterprise::V1beta1::RecaptchaEnterpriseClient.new(**kwargs)
@@ -117,6 +117,10 @@ module Google
117
117
  # The default timeout, in seconds, for calls made through this client.
118
118
  # @param metadata [Hash]
119
119
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
120
+ # @param service_address [String]
121
+ # Override for the service hostname, or `nil` to leave as the default.
122
+ # @param service_port [Integer]
123
+ # Override for the service port, or `nil` to leave as the default.
120
124
  # @param exception_transformer [Proc]
121
125
  # An optional proc that intercepts any exceptions raised during an API call to inject
122
126
  # custom error handling.
@@ -126,6 +130,8 @@ module Google
126
130
  client_config: {},
127
131
  timeout: DEFAULT_TIMEOUT,
128
132
  metadata: nil,
133
+ service_address: nil,
134
+ service_port: nil,
129
135
  exception_transformer: nil,
130
136
  lib_name: nil,
131
137
  lib_version: ""
@@ -179,8 +185,8 @@ module Google
179
185
  end
180
186
 
181
187
  # Allow overriding the service path/port in subclasses.
182
- service_path = self.class::SERVICE_ADDRESS
183
- port = self.class::DEFAULT_SERVICE_PORT
188
+ service_path = service_address || self.class::SERVICE_ADDRESS
189
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
184
190
  interceptors = self.class::GRPC_INTERCEPTORS
185
191
  @recaptcha_enterprise_stub = Google::Gax::Grpc.create_stub(
186
192
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module RecaptchaEnterprise
19
- VERSION = "0.1.1".freeze
19
+ VERSION = "0.2.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recaptcha_enterprise
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: 2019-06-13 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-gax
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.3'
19
+ version: '1.7'
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: '1.3'
26
+ version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: grpc-google-iam-v1
29
29
  requirement: !ruby/object:Gem::Requirement