google-cloud-debugger 0.33.5 → 0.33.6

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: 573f53d17be8d6c12ebef3810d46841bfdb59b100f562cbb8f9ac635eb5530f9
4
- data.tar.gz: 1688a30f8d4edb17dedb7f7536c95e5bd6ebdd77998e6599b78b062b93ebc811
3
+ metadata.gz: 15c05450b8c520b7370a9a2781bb6b601395d048d0c9bfc337dbd5910d98702c
4
+ data.tar.gz: 9ebae1ecf068fdd8eadbc201041cb87417aa64e0fbfc5e854ba604d698c05d0c
5
5
  SHA512:
6
- metadata.gz: 645755e84a1d9c6ff0704695b175a3c91abda688ec2cc84bd031ed38ad4bccdbb5337d43a43c52aef9e676a70084abe07f19e6cbfb9d6e0bfffc53d9a8614c25
7
- data.tar.gz: d1a6a816c1cd55c9a8f6774cae3abb1142c3fc4e22494122677965f3d6dd7e513b058264050314a0dd7bfde0c3d8172a6eb92939ae2db9781c8b90564fbf2cf4
6
+ metadata.gz: c7e275fbcabfad6ee19c3663762cce6db71dbc735a57b8e76ef175a2d4bb97f7ffa4cb9df2a6e643069e68c9c8af1ee8eb747a5e7bab2893a7be0ec6d2a148ba
7
+ data.tar.gz: 83c22c59081f8f1a077901417211b562602c3e0d4a2b99a7159feb95765bbe173daba7ab9a1ae091d5e92806f0d6a381297a4ac9af2b2b7395e9acc46875d8ce
@@ -1,5 +1,9 @@
1
1
  # Release History
2
2
 
3
+ ### 0.33.6 / 2019-07-08
4
+
5
+ * Support overriding service host and port in the low-level client.
6
+
3
7
  ### 0.33.5 / 2019-06-11
4
8
 
5
9
  * Google::Cloud::Env provides additional configuration options including retries and cache control
@@ -129,6 +129,10 @@ module Google
129
129
  # The default timeout, in seconds, for calls made through this client.
130
130
  # @param metadata [Hash]
131
131
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
132
+ # @param service_address [String]
133
+ # Override for the service hostname, or `nil` to leave as the default.
134
+ # @param service_port [Integer]
135
+ # Override for the service port, or `nil` to leave as the default.
132
136
  # @param exception_transformer [Proc]
133
137
  # An optional proc that intercepts any exceptions raised during an API call to inject
134
138
  # custom error handling.
@@ -138,6 +142,8 @@ module Google
138
142
  client_config: nil,
139
143
  timeout: nil,
140
144
  metadata: nil,
145
+ service_address: nil,
146
+ service_port: nil,
141
147
  exception_transformer: nil,
142
148
  lib_name: nil,
143
149
  lib_version: nil
@@ -149,6 +155,8 @@ module Google
149
155
  metadata: metadata,
150
156
  exception_transformer: exception_transformer,
151
157
  lib_name: lib_name,
158
+ service_address: service_address,
159
+ service_port: service_port,
152
160
  lib_version: lib_version
153
161
  }.select { |_, v| v != nil }
154
162
  Google::Cloud::Debugger::V2::Controller2Client.new(**kwargs)
@@ -196,6 +204,10 @@ module Google
196
204
  # The default timeout, in seconds, for calls made through this client.
197
205
  # @param metadata [Hash]
198
206
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
207
+ # @param service_address [String]
208
+ # Override for the service hostname, or `nil` to leave as the default.
209
+ # @param service_port [Integer]
210
+ # Override for the service port, or `nil` to leave as the default.
199
211
  # @param exception_transformer [Proc]
200
212
  # An optional proc that intercepts any exceptions raised during an API call to inject
201
213
  # custom error handling.
@@ -205,6 +217,8 @@ module Google
205
217
  client_config: nil,
206
218
  timeout: nil,
207
219
  metadata: nil,
220
+ service_address: nil,
221
+ service_port: nil,
208
222
  exception_transformer: nil,
209
223
  lib_name: nil,
210
224
  lib_version: nil
@@ -216,6 +230,8 @@ module Google
216
230
  metadata: metadata,
217
231
  exception_transformer: exception_transformer,
218
232
  lib_name: lib_name,
233
+ service_address: service_address,
234
+ service_port: service_port,
219
235
  lib_version: lib_version
220
236
  }.select { |_, v| v != nil }
221
237
  Google::Cloud::Debugger::V2::Debugger2Client.new(**kwargs)
@@ -105,6 +105,10 @@ module Google
105
105
  # The default timeout, in seconds, for calls made through this client.
106
106
  # @param metadata [Hash]
107
107
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
108
+ # @param service_address [String]
109
+ # Override for the service hostname, or `nil` to leave as the default.
110
+ # @param service_port [Integer]
111
+ # Override for the service port, or `nil` to leave as the default.
108
112
  # @param exception_transformer [Proc]
109
113
  # An optional proc that intercepts any exceptions raised during an API call to inject
110
114
  # custom error handling.
@@ -114,6 +118,8 @@ module Google
114
118
  client_config: {},
115
119
  timeout: DEFAULT_TIMEOUT,
116
120
  metadata: nil,
121
+ service_address: nil,
122
+ service_port: nil,
117
123
  exception_transformer: nil,
118
124
  lib_name: nil,
119
125
  lib_version: ""
@@ -167,8 +173,8 @@ module Google
167
173
  end
168
174
 
169
175
  # Allow overriding the service path/port in subclasses.
170
- service_path = self.class::SERVICE_ADDRESS
171
- port = self.class::DEFAULT_SERVICE_PORT
176
+ service_path = service_address || self.class::SERVICE_ADDRESS
177
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
172
178
  interceptors = self.class::GRPC_INTERCEPTORS
173
179
  @controller2_stub = Google::Gax::Grpc.create_stub(
174
180
  service_path,
@@ -97,6 +97,10 @@ module Google
97
97
  # The default timeout, in seconds, for calls made through this client.
98
98
  # @param metadata [Hash]
99
99
  # Default metadata to be sent with each request. This can be overridden on a per call basis.
100
+ # @param service_address [String]
101
+ # Override for the service hostname, or `nil` to leave as the default.
102
+ # @param service_port [Integer]
103
+ # Override for the service port, or `nil` to leave as the default.
100
104
  # @param exception_transformer [Proc]
101
105
  # An optional proc that intercepts any exceptions raised during an API call to inject
102
106
  # custom error handling.
@@ -106,6 +110,8 @@ module Google
106
110
  client_config: {},
107
111
  timeout: DEFAULT_TIMEOUT,
108
112
  metadata: nil,
113
+ service_address: nil,
114
+ service_port: nil,
109
115
  exception_transformer: nil,
110
116
  lib_name: nil,
111
117
  lib_version: ""
@@ -159,8 +165,8 @@ module Google
159
165
  end
160
166
 
161
167
  # Allow overriding the service path/port in subclasses.
162
- service_path = self.class::SERVICE_ADDRESS
163
- port = self.class::DEFAULT_SERVICE_PORT
168
+ service_path = service_address || self.class::SERVICE_ADDRESS
169
+ port = service_port || self.class::DEFAULT_SERVICE_PORT
164
170
  interceptors = self.class::GRPC_INTERCEPTORS
165
171
  @debugger2_stub = Google::Gax::Grpc.create_stub(
166
172
  service_path,
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Debugger
19
- VERSION = "0.33.5".freeze
19
+ VERSION = "0.33.6".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-debugger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.33.5
4
+ version: 0.33.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Heng Xiong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-12 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: binding_of_caller
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: '1.7'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '1.0'
68
+ version: '1.7'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: stackdriver-core
71
71
  requirement: !ruby/object:Gem::Requirement