google-cloud-webrisk 0.1.2 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdca600c15f56a720c919bdbe51252aea816d70bd6e10378f41ee9ddb864a888
|
4
|
+
data.tar.gz: 618267dbdbc3ce5c628ffd2d0e919bd525fa16c5e46483649023c83ba6b89567
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98d3df76357495342cfdd6ed28367b9d6e8487104d2782ea394e23291c0a962b03b16cca0112edeae29c57a286e6dd07bf72aac43b81096171d67c6a12fa1faa
|
7
|
+
data.tar.gz: 01d1f7b0b6a4ad847bb132963fea9b490d1ec3f411ea0a0c825c461702b12b80c699815d6eaa5c6f58d1f41fdf9fc39229974b593684a855725e4698192f60a6
|
data/lib/google/cloud/webrisk.rb
CHANGED
@@ -120,6 +120,10 @@ module Google
|
|
120
120
|
# The default timeout, in seconds, for calls made through this client.
|
121
121
|
# @param metadata [Hash]
|
122
122
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
123
|
+
# @param service_address [String]
|
124
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
125
|
+
# @param service_port [Integer]
|
126
|
+
# Override for the service port, or `nil` to leave as the default.
|
123
127
|
# @param exception_transformer [Proc]
|
124
128
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
125
129
|
# 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::Webrisk::V1beta1::WebRiskServiceV1Beta1Client.new(**kwargs)
|
@@ -86,6 +86,10 @@ module Google
|
|
86
86
|
# The default timeout, in seconds, for calls made through this client.
|
87
87
|
# @param metadata [Hash]
|
88
88
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
89
|
+
# @param service_address [String]
|
90
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
91
|
+
# @param service_port [Integer]
|
92
|
+
# Override for the service port, or `nil` to leave as the default.
|
89
93
|
# @param exception_transformer [Proc]
|
90
94
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
91
95
|
# custom error handling.
|
@@ -95,6 +99,8 @@ module Google
|
|
95
99
|
client_config: {},
|
96
100
|
timeout: DEFAULT_TIMEOUT,
|
97
101
|
metadata: nil,
|
102
|
+
service_address: nil,
|
103
|
+
service_port: nil,
|
98
104
|
exception_transformer: nil,
|
99
105
|
lib_name: nil,
|
100
106
|
lib_version: ""
|
@@ -148,8 +154,8 @@ module Google
|
|
148
154
|
end
|
149
155
|
|
150
156
|
# Allow overriding the service path/port in subclasses.
|
151
|
-
service_path = self.class::SERVICE_ADDRESS
|
152
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
157
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
158
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
153
159
|
interceptors = self.class::GRPC_INTERCEPTORS
|
154
160
|
@web_risk_service_v1_beta1_stub = Google::Gax::Grpc.create_stub(
|
155
161
|
service_path,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-webrisk
|
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: minitest
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|