google-cloud-logging 1.6.4 → 1.6.5

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: 960bf93ff65f7cd4f6e2b15f66e77c56c3cc530081a65db12232912e895d8223
4
- data.tar.gz: 60efccf3953c324d5a9e9a86999ac3f5c356f6949fca50820b6ed7ccb922dc43
3
+ metadata.gz: a1cc7c516362b6eab646e6b363e80f7f6539d7111b9f0128477898de57c0562b
4
+ data.tar.gz: acae4acb352b0757d0867f66c45d23d15901603160e3f79483d4f53eb8a61f77
5
5
  SHA512:
6
- metadata.gz: 89954e4b30a4b8996980143299e76c48ce8e0d94c76eb090fb371c530dbd18fb78bb483efdc0c832c082a2a3400d8f9e568289767bec1de1d50f7d1fe6ed048b
7
- data.tar.gz: 25c3b1ead5c766cdd53f05d42c706a18ee6bd6e4e6672d4c51c361993a109962ae728156ca42f195142ba97833ab631efdbdd50f2db76310ee213c62124ce70b
6
+ metadata.gz: 7009e843a5d8372e699d829d87881555fe9744beccbf5d2059562c73b1a7e5ce0416be7a62d5f2fc2c88e8145c043bee399db995360d4e6bce1b3d8efe55063e
7
+ data.tar.gz: a90732728e4dd94191dc965b0483d492723b7a19428174956468bdafd0993a21585b4dc93ac7846e2da5ced5aaacf0a472754c8029e47b4e00db7d77df0d8024
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 1.6.5 / 2019-07-08
4
+
5
+ * Support overriding service host and port in the low-level interface.
6
+
3
7
  ### 1.6.4 / 2019-06-11
4
8
 
5
9
  * Add documentation for MetricDescriptor#launch_stage and
@@ -152,6 +152,10 @@ module Google
152
152
  # The default timeout, in seconds, for calls made through this client.
153
153
  # @param metadata [Hash]
154
154
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
155
+ # @param service_address [String]
156
+ # Override for the service hostname, or `nil` to leave as the default.
157
+ # @param service_port [Integer]
158
+ # Override for the service port, or `nil` to leave as the default.
155
159
  # @param exception_transformer [Proc]
156
160
  # An optional proc that intercepts any exceptions raised during an API call to inject
157
161
  # custom error handling.
@@ -161,6 +165,8 @@ module Google
161
165
  client_config: {},
162
166
  timeout: DEFAULT_TIMEOUT,
163
167
  metadata: nil,
168
+ service_address: nil,
169
+ service_port: nil,
164
170
  exception_transformer: nil,
165
171
  lib_name: nil,
166
172
  lib_version: ""
@@ -215,8 +221,8 @@ module Google
215
221
  end
216
222
 
217
223
  # Allow overriding the service path/port in subclasses.
218
- service_path = self.class::SERVICE_ADDRESS
219
- port = self.class::DEFAULT_SERVICE_PORT
224
+ service_path = service_address || self.class::SERVICE_ADDRESS
225
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
220
226
  interceptors = self.class::GRPC_INTERCEPTORS
221
227
  @config_service_v2_stub = Google::Gax::Grpc.create_stub(
222
228
  service_path,
@@ -150,6 +150,10 @@ module Google
150
150
  # The default timeout, in seconds, for calls made through this client.
151
151
  # @param metadata [Hash]
152
152
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
153
+ # @param service_address [String]
154
+ # Override for the service hostname, or `nil` to leave as the default.
155
+ # @param service_port [Integer]
156
+ # Override for the service port, or `nil` to leave as the default.
153
157
  # @param exception_transformer [Proc]
154
158
  # An optional proc that intercepts any exceptions raised during an API call to inject
155
159
  # custom error handling.
@@ -159,6 +163,8 @@ module Google
159
163
  client_config: {},
160
164
  timeout: DEFAULT_TIMEOUT,
161
165
  metadata: nil,
166
+ service_address: nil,
167
+ service_port: nil,
162
168
  exception_transformer: nil,
163
169
  lib_name: nil,
164
170
  lib_version: ""
@@ -214,8 +220,8 @@ module Google
214
220
  end
215
221
 
216
222
  # Allow overriding the service path/port in subclasses.
217
- service_path = self.class::SERVICE_ADDRESS
218
- port = self.class::DEFAULT_SERVICE_PORT
223
+ service_path = service_address || self.class::SERVICE_ADDRESS
224
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
219
225
  interceptors = self.class::GRPC_INTERCEPTORS
220
226
  @logging_service_v2_stub = Google::Gax::Grpc.create_stub(
221
227
  service_path,
@@ -130,6 +130,10 @@ module Google
130
130
  # The default timeout, in seconds, for calls made through this client.
131
131
  # @param metadata [Hash]
132
132
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
133
+ # @param service_address [String]
134
+ # Override for the service hostname, or `nil` to leave as the default.
135
+ # @param service_port [Integer]
136
+ # Override for the service port, or `nil` to leave as the default.
133
137
  # @param exception_transformer [Proc]
134
138
  # An optional proc that intercepts any exceptions raised during an API call to inject
135
139
  # custom error handling.
@@ -139,6 +143,8 @@ module Google
139
143
  client_config: {},
140
144
  timeout: DEFAULT_TIMEOUT,
141
145
  metadata: nil,
146
+ service_address: nil,
147
+ service_port: nil,
142
148
  exception_transformer: nil,
143
149
  lib_name: nil,
144
150
  lib_version: ""
@@ -193,8 +199,8 @@ module Google
193
199
  end
194
200
 
195
201
  # Allow overriding the service path/port in subclasses.
196
- service_path = self.class::SERVICE_ADDRESS
197
- port = self.class::DEFAULT_SERVICE_PORT
202
+ service_path = service_address || self.class::SERVICE_ADDRESS
203
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
198
204
  interceptors = self.class::GRPC_INTERCEPTORS
199
205
  @metrics_service_v2_stub = Google::Gax::Grpc.create_stub(
200
206
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Logging
19
- VERSION = "1.6.4".freeze
19
+ VERSION = "1.6.5".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-logging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Moore
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-06-12 00:00:00.000000000 Z
12
+ date: 2019-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: google-cloud-core
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '1.3'
48
+ version: '1.7'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '1.3'
55
+ version: '1.7'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: googleapis-common-protos-types
58
58
  requirement: !ruby/object:Gem::Requirement