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: b1f1efaf6264bfcb9aef20c8f9b0071c5ed9c2e4ad475e191f355b9d0f3a9995
4
- data.tar.gz: 413afe46af622cd2fdc87dcded8bb213247a62261fcb469c4e928edf9e3d6971
3
+ metadata.gz: fdca600c15f56a720c919bdbe51252aea816d70bd6e10378f41ee9ddb864a888
4
+ data.tar.gz: 618267dbdbc3ce5c628ffd2d0e919bd525fa16c5e46483649023c83ba6b89567
5
5
  SHA512:
6
- metadata.gz: d05c3d78cd100f0e0f06b0d7bfda7eaac860ff7d0c5a5bbdd7d71a62cb70ed74cd4ed98eb1fbb955a3abfff4eb932ae0bd0fc74c8087eda3fd3fd6ed84e4167b
7
- data.tar.gz: 189835d54e6179ce43190c8b825d1c85a00bf760fb10afa7a4bb33e50465212d4f5877f26e501ed0bcf4a88660cc2753b9c2ac08494533bc703e6b21f6b9c9e3
6
+ metadata.gz: 98d3df76357495342cfdd6ed28367b9d6e8487104d2782ea394e23291c0a962b03b16cca0112edeae29c57a286e6dd07bf72aac43b81096171d67c6a12fa1faa
7
+ data.tar.gz: 01d1f7b0b6a4ad847bb132963fea9b490d1ec3f411ea0a0c825c461702b12b80c699815d6eaa5c6f58d1f41fdf9fc39229974b593684a855725e4698192f60a6
@@ -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,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Webrisk
19
- VERSION = "0.1.2".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-webrisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
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: minitest
29
29
  requirement: !ruby/object:Gem::Requirement