google-cloud-recaptcha_enterprise 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: b702594290f6d53dd02a9f0cd483d2f1dac72ac614b0c506d874c4581d154410
|
|
4
|
+
data.tar.gz: 1164b48798e4706da95da57ab2783bcded08d6fa8eb533ed8c9ea5ece258b983
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
26
|
+
version: '1.7'
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: grpc-google-iam-v1
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|