google-cloud-phishing_protection 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: 745e3d3c7839c29ae400bd9237a3748c8f6cbfcb49b2d9087526ccc946de6271
|
|
4
|
+
data.tar.gz: b5e4427235838799d2b8af73cacb5cd0880d169c57f8efbca7768faabbf61730
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0384088840d6a2fc3ef9a4661798841ce9e1eb010cd7c8bbf635f8a210e8184432382a557e5842f0bd954001beed8331d3961c8a41051516c16dea86790d93c5'
|
|
7
|
+
data.tar.gz: a89d8ab65be78c8592b7c3a358b64c3d776a3e5a33807bbfda5b0f898bc569a8417abeb30a8b66950b88488547b1e67ceaeefae1c886e6c8ed9f3f83021d4d0f
|
|
@@ -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::PhishingProtection::V1beta1::PhishingProtectionClient.new(**kwargs)
|
|
@@ -100,6 +100,10 @@ module Google
|
|
|
100
100
|
# The default timeout, in seconds, for calls made through this client.
|
|
101
101
|
# @param metadata [Hash]
|
|
102
102
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
103
|
+
# @param service_address [String]
|
|
104
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
105
|
+
# @param service_port [Integer]
|
|
106
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
103
107
|
# @param exception_transformer [Proc]
|
|
104
108
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
105
109
|
# custom error handling.
|
|
@@ -109,6 +113,8 @@ module Google
|
|
|
109
113
|
client_config: {},
|
|
110
114
|
timeout: DEFAULT_TIMEOUT,
|
|
111
115
|
metadata: nil,
|
|
116
|
+
service_address: nil,
|
|
117
|
+
service_port: nil,
|
|
112
118
|
exception_transformer: nil,
|
|
113
119
|
lib_name: nil,
|
|
114
120
|
lib_version: ""
|
|
@@ -162,8 +168,8 @@ module Google
|
|
|
162
168
|
end
|
|
163
169
|
|
|
164
170
|
# Allow overriding the service path/port in subclasses.
|
|
165
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
166
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
171
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
172
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
167
173
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
168
174
|
@phishing_protection_stub = Google::Gax::Grpc.create_stub(
|
|
169
175
|
service_path,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-phishing_protection
|
|
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: googleapis-common-protos
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|