google-cloud-dataproc 0.4.0 → 0.5.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 +4 -4
- data/lib/google/cloud/dataproc.rb +16 -0
- data/lib/google/cloud/dataproc/v1.rb +24 -0
- data/lib/google/cloud/dataproc/v1/cluster_controller_client.rb +11 -2
- data/lib/google/cloud/dataproc/v1/job_controller_client.rb +8 -2
- data/lib/google/cloud/dataproc/v1/workflow_template_service_client.rb +11 -2
- data/lib/google/cloud/dataproc/v1beta2.rb +32 -0
- data/lib/google/cloud/dataproc/v1beta2/autoscaling_policy_service_client.rb +8 -2
- data/lib/google/cloud/dataproc/v1beta2/cluster_controller_client.rb +11 -2
- data/lib/google/cloud/dataproc/v1beta2/job_controller_client.rb +8 -2
- data/lib/google/cloud/dataproc/v1beta2/workflow_template_service_client.rb +11 -2
- data/lib/google/cloud/dataproc/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbea65d3501a258f04ba06c714a59d7899ec9be3729a31ae3dc9b0bf21eae65d
|
|
4
|
+
data.tar.gz: 8f54a729e2698c8085de643a458250ce933249f833bddef5ebfc25646bfcab94
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f41bec5de11b3759b7af7209b1c2f39fb48e869051334e2163da2d98516cb46a399757b26fe9b2a038cc696bc844ebe11f1993e76b76e32b07d830621a5b89b
|
|
7
|
+
data.tar.gz: 78c0b121e5ccf4b3be43f8922ca253e6c4548db93db0a86c3271cfcb473318d44e3b16fcd74afd7112f3ad2bebd3683774dc601bf79ffa4114339f5f06ae7dbc
|
|
@@ -144,6 +144,10 @@ module Google
|
|
|
144
144
|
# The default timeout, in seconds, for calls made through this client.
|
|
145
145
|
# @param metadata [Hash]
|
|
146
146
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
147
|
+
# @param service_address [String]
|
|
148
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
149
|
+
# @param service_port [Integer]
|
|
150
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
147
151
|
# @param exception_transformer [Proc]
|
|
148
152
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
149
153
|
# custom error handling.
|
|
@@ -197,6 +201,10 @@ module Google
|
|
|
197
201
|
# The default timeout, in seconds, for calls made through this client.
|
|
198
202
|
# @param metadata [Hash]
|
|
199
203
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
204
|
+
# @param service_address [String]
|
|
205
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
206
|
+
# @param service_port [Integer]
|
|
207
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
200
208
|
# @param exception_transformer [Proc]
|
|
201
209
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
202
210
|
# custom error handling.
|
|
@@ -249,6 +257,10 @@ module Google
|
|
|
249
257
|
# The default timeout, in seconds, for calls made through this client.
|
|
250
258
|
# @param metadata [Hash]
|
|
251
259
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
260
|
+
# @param service_address [String]
|
|
261
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
262
|
+
# @param service_port [Integer]
|
|
263
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
252
264
|
# @param exception_transformer [Proc]
|
|
253
265
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
254
266
|
# custom error handling.
|
|
@@ -302,6 +314,10 @@ module Google
|
|
|
302
314
|
# The default timeout, in seconds, for calls made through this client.
|
|
303
315
|
# @param metadata [Hash]
|
|
304
316
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
317
|
+
# @param service_address [String]
|
|
318
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
319
|
+
# @param service_port [Integer]
|
|
320
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
305
321
|
# @param exception_transformer [Proc]
|
|
306
322
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
307
323
|
# custom error handling.
|
|
@@ -137,6 +137,10 @@ module Google
|
|
|
137
137
|
# The default timeout, in seconds, for calls made through this client.
|
|
138
138
|
# @param metadata [Hash]
|
|
139
139
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
140
|
+
# @param service_address [String]
|
|
141
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
142
|
+
# @param service_port [Integer]
|
|
143
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
140
144
|
# @param exception_transformer [Proc]
|
|
141
145
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
142
146
|
# custom error handling.
|
|
@@ -146,6 +150,8 @@ module Google
|
|
|
146
150
|
client_config: nil,
|
|
147
151
|
timeout: nil,
|
|
148
152
|
metadata: nil,
|
|
153
|
+
service_address: nil,
|
|
154
|
+
service_port: nil,
|
|
149
155
|
exception_transformer: nil,
|
|
150
156
|
lib_name: nil,
|
|
151
157
|
lib_version: nil
|
|
@@ -157,6 +163,8 @@ module Google
|
|
|
157
163
|
metadata: metadata,
|
|
158
164
|
exception_transformer: exception_transformer,
|
|
159
165
|
lib_name: lib_name,
|
|
166
|
+
service_address: service_address,
|
|
167
|
+
service_port: service_port,
|
|
160
168
|
lib_version: lib_version
|
|
161
169
|
}.select { |_, v| v != nil }
|
|
162
170
|
Google::Cloud::Dataproc::V1::ClusterControllerClient.new(**kwargs)
|
|
@@ -193,6 +201,10 @@ module Google
|
|
|
193
201
|
# The default timeout, in seconds, for calls made through this client.
|
|
194
202
|
# @param metadata [Hash]
|
|
195
203
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
204
|
+
# @param service_address [String]
|
|
205
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
206
|
+
# @param service_port [Integer]
|
|
207
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
196
208
|
# @param exception_transformer [Proc]
|
|
197
209
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
198
210
|
# custom error handling.
|
|
@@ -202,6 +214,8 @@ module Google
|
|
|
202
214
|
client_config: nil,
|
|
203
215
|
timeout: nil,
|
|
204
216
|
metadata: nil,
|
|
217
|
+
service_address: nil,
|
|
218
|
+
service_port: nil,
|
|
205
219
|
exception_transformer: nil,
|
|
206
220
|
lib_name: nil,
|
|
207
221
|
lib_version: nil
|
|
@@ -213,6 +227,8 @@ module Google
|
|
|
213
227
|
metadata: metadata,
|
|
214
228
|
exception_transformer: exception_transformer,
|
|
215
229
|
lib_name: lib_name,
|
|
230
|
+
service_address: service_address,
|
|
231
|
+
service_port: service_port,
|
|
216
232
|
lib_version: lib_version
|
|
217
233
|
}.select { |_, v| v != nil }
|
|
218
234
|
Google::Cloud::Dataproc::V1::JobControllerClient.new(**kwargs)
|
|
@@ -250,6 +266,10 @@ module Google
|
|
|
250
266
|
# The default timeout, in seconds, for calls made through this client.
|
|
251
267
|
# @param metadata [Hash]
|
|
252
268
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
269
|
+
# @param service_address [String]
|
|
270
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
271
|
+
# @param service_port [Integer]
|
|
272
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
253
273
|
# @param exception_transformer [Proc]
|
|
254
274
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
255
275
|
# custom error handling.
|
|
@@ -259,6 +279,8 @@ module Google
|
|
|
259
279
|
client_config: nil,
|
|
260
280
|
timeout: nil,
|
|
261
281
|
metadata: nil,
|
|
282
|
+
service_address: nil,
|
|
283
|
+
service_port: nil,
|
|
262
284
|
exception_transformer: nil,
|
|
263
285
|
lib_name: nil,
|
|
264
286
|
lib_version: nil
|
|
@@ -270,6 +292,8 @@ module Google
|
|
|
270
292
|
metadata: metadata,
|
|
271
293
|
exception_transformer: exception_transformer,
|
|
272
294
|
lib_name: lib_name,
|
|
295
|
+
service_address: service_address,
|
|
296
|
+
service_port: service_port,
|
|
273
297
|
lib_version: lib_version
|
|
274
298
|
}.select { |_, v| v != nil }
|
|
275
299
|
Google::Cloud::Dataproc::V1::WorkflowTemplateServiceClient.new(**kwargs)
|
|
@@ -102,6 +102,10 @@ module Google
|
|
|
102
102
|
# The default timeout, in seconds, for calls made through this client.
|
|
103
103
|
# @param metadata [Hash]
|
|
104
104
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
105
|
+
# @param service_address [String]
|
|
106
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
107
|
+
# @param service_port [Integer]
|
|
108
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
105
109
|
# @param exception_transformer [Proc]
|
|
106
110
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
107
111
|
# custom error handling.
|
|
@@ -111,6 +115,8 @@ module Google
|
|
|
111
115
|
client_config: {},
|
|
112
116
|
timeout: DEFAULT_TIMEOUT,
|
|
113
117
|
metadata: nil,
|
|
118
|
+
service_address: nil,
|
|
119
|
+
service_port: nil,
|
|
114
120
|
exception_transformer: nil,
|
|
115
121
|
lib_name: nil,
|
|
116
122
|
lib_version: ""
|
|
@@ -128,7 +134,10 @@ module Google
|
|
|
128
134
|
client_config: client_config,
|
|
129
135
|
timeout: timeout,
|
|
130
136
|
lib_name: lib_name,
|
|
137
|
+
service_address: service_address,
|
|
138
|
+
service_port: service_port,
|
|
131
139
|
lib_version: lib_version,
|
|
140
|
+
metadata: metadata,
|
|
132
141
|
)
|
|
133
142
|
|
|
134
143
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
@@ -174,8 +183,8 @@ module Google
|
|
|
174
183
|
end
|
|
175
184
|
|
|
176
185
|
# Allow overriding the service path/port in subclasses.
|
|
177
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
178
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
186
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
187
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
179
188
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
180
189
|
@cluster_controller_stub = Google::Gax::Grpc.create_stub(
|
|
181
190
|
service_path,
|
|
@@ -94,6 +94,10 @@ module Google
|
|
|
94
94
|
# The default timeout, in seconds, for calls made through this client.
|
|
95
95
|
# @param metadata [Hash]
|
|
96
96
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
97
|
+
# @param service_address [String]
|
|
98
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
99
|
+
# @param service_port [Integer]
|
|
100
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
97
101
|
# @param exception_transformer [Proc]
|
|
98
102
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
99
103
|
# custom error handling.
|
|
@@ -103,6 +107,8 @@ module Google
|
|
|
103
107
|
client_config: {},
|
|
104
108
|
timeout: DEFAULT_TIMEOUT,
|
|
105
109
|
metadata: nil,
|
|
110
|
+
service_address: nil,
|
|
111
|
+
service_port: nil,
|
|
106
112
|
exception_transformer: nil,
|
|
107
113
|
lib_name: nil,
|
|
108
114
|
lib_version: ""
|
|
@@ -157,8 +163,8 @@ module Google
|
|
|
157
163
|
end
|
|
158
164
|
|
|
159
165
|
# Allow overriding the service path/port in subclasses.
|
|
160
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
161
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
167
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
162
168
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
169
|
@job_controller_stub = Google::Gax::Grpc.create_stub(
|
|
164
170
|
service_path,
|
|
@@ -137,6 +137,10 @@ module Google
|
|
|
137
137
|
# The default timeout, in seconds, for calls made through this client.
|
|
138
138
|
# @param metadata [Hash]
|
|
139
139
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
140
|
+
# @param service_address [String]
|
|
141
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
142
|
+
# @param service_port [Integer]
|
|
143
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
140
144
|
# @param exception_transformer [Proc]
|
|
141
145
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
142
146
|
# custom error handling.
|
|
@@ -146,6 +150,8 @@ module Google
|
|
|
146
150
|
client_config: {},
|
|
147
151
|
timeout: DEFAULT_TIMEOUT,
|
|
148
152
|
metadata: nil,
|
|
153
|
+
service_address: nil,
|
|
154
|
+
service_port: nil,
|
|
149
155
|
exception_transformer: nil,
|
|
150
156
|
lib_name: nil,
|
|
151
157
|
lib_version: ""
|
|
@@ -163,7 +169,10 @@ module Google
|
|
|
163
169
|
client_config: client_config,
|
|
164
170
|
timeout: timeout,
|
|
165
171
|
lib_name: lib_name,
|
|
172
|
+
service_address: service_address,
|
|
173
|
+
service_port: service_port,
|
|
166
174
|
lib_version: lib_version,
|
|
175
|
+
metadata: metadata,
|
|
167
176
|
)
|
|
168
177
|
|
|
169
178
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
@@ -209,8 +218,8 @@ module Google
|
|
|
209
218
|
end
|
|
210
219
|
|
|
211
220
|
# Allow overriding the service path/port in subclasses.
|
|
212
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
213
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
221
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
222
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
214
223
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
215
224
|
@workflow_template_service_stub = Google::Gax::Grpc.create_stub(
|
|
216
225
|
service_path,
|
|
@@ -138,6 +138,10 @@ module Google
|
|
|
138
138
|
# The default timeout, in seconds, for calls made through this client.
|
|
139
139
|
# @param metadata [Hash]
|
|
140
140
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
141
|
+
# @param service_address [String]
|
|
142
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
143
|
+
# @param service_port [Integer]
|
|
144
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
141
145
|
# @param exception_transformer [Proc]
|
|
142
146
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
143
147
|
# custom error handling.
|
|
@@ -147,6 +151,8 @@ module Google
|
|
|
147
151
|
client_config: nil,
|
|
148
152
|
timeout: nil,
|
|
149
153
|
metadata: nil,
|
|
154
|
+
service_address: nil,
|
|
155
|
+
service_port: nil,
|
|
150
156
|
exception_transformer: nil,
|
|
151
157
|
lib_name: nil,
|
|
152
158
|
lib_version: nil
|
|
@@ -158,6 +164,8 @@ module Google
|
|
|
158
164
|
metadata: metadata,
|
|
159
165
|
exception_transformer: exception_transformer,
|
|
160
166
|
lib_name: lib_name,
|
|
167
|
+
service_address: service_address,
|
|
168
|
+
service_port: service_port,
|
|
161
169
|
lib_version: lib_version
|
|
162
170
|
}.select { |_, v| v != nil }
|
|
163
171
|
Google::Cloud::Dataproc::V1beta2::AutoscalingPolicyServiceClient.new(**kwargs)
|
|
@@ -195,6 +203,10 @@ module Google
|
|
|
195
203
|
# The default timeout, in seconds, for calls made through this client.
|
|
196
204
|
# @param metadata [Hash]
|
|
197
205
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
206
|
+
# @param service_address [String]
|
|
207
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
208
|
+
# @param service_port [Integer]
|
|
209
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
198
210
|
# @param exception_transformer [Proc]
|
|
199
211
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
200
212
|
# custom error handling.
|
|
@@ -204,6 +216,8 @@ module Google
|
|
|
204
216
|
client_config: nil,
|
|
205
217
|
timeout: nil,
|
|
206
218
|
metadata: nil,
|
|
219
|
+
service_address: nil,
|
|
220
|
+
service_port: nil,
|
|
207
221
|
exception_transformer: nil,
|
|
208
222
|
lib_name: nil,
|
|
209
223
|
lib_version: nil
|
|
@@ -215,6 +229,8 @@ module Google
|
|
|
215
229
|
metadata: metadata,
|
|
216
230
|
exception_transformer: exception_transformer,
|
|
217
231
|
lib_name: lib_name,
|
|
232
|
+
service_address: service_address,
|
|
233
|
+
service_port: service_port,
|
|
218
234
|
lib_version: lib_version
|
|
219
235
|
}.select { |_, v| v != nil }
|
|
220
236
|
Google::Cloud::Dataproc::V1beta2::ClusterControllerClient.new(**kwargs)
|
|
@@ -251,6 +267,10 @@ module Google
|
|
|
251
267
|
# The default timeout, in seconds, for calls made through this client.
|
|
252
268
|
# @param metadata [Hash]
|
|
253
269
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
270
|
+
# @param service_address [String]
|
|
271
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
272
|
+
# @param service_port [Integer]
|
|
273
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
254
274
|
# @param exception_transformer [Proc]
|
|
255
275
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
256
276
|
# custom error handling.
|
|
@@ -260,6 +280,8 @@ module Google
|
|
|
260
280
|
client_config: nil,
|
|
261
281
|
timeout: nil,
|
|
262
282
|
metadata: nil,
|
|
283
|
+
service_address: nil,
|
|
284
|
+
service_port: nil,
|
|
263
285
|
exception_transformer: nil,
|
|
264
286
|
lib_name: nil,
|
|
265
287
|
lib_version: nil
|
|
@@ -271,6 +293,8 @@ module Google
|
|
|
271
293
|
metadata: metadata,
|
|
272
294
|
exception_transformer: exception_transformer,
|
|
273
295
|
lib_name: lib_name,
|
|
296
|
+
service_address: service_address,
|
|
297
|
+
service_port: service_port,
|
|
274
298
|
lib_version: lib_version
|
|
275
299
|
}.select { |_, v| v != nil }
|
|
276
300
|
Google::Cloud::Dataproc::V1beta2::JobControllerClient.new(**kwargs)
|
|
@@ -308,6 +332,10 @@ module Google
|
|
|
308
332
|
# The default timeout, in seconds, for calls made through this client.
|
|
309
333
|
# @param metadata [Hash]
|
|
310
334
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
335
|
+
# @param service_address [String]
|
|
336
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
337
|
+
# @param service_port [Integer]
|
|
338
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
311
339
|
# @param exception_transformer [Proc]
|
|
312
340
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
313
341
|
# custom error handling.
|
|
@@ -317,6 +345,8 @@ module Google
|
|
|
317
345
|
client_config: nil,
|
|
318
346
|
timeout: nil,
|
|
319
347
|
metadata: nil,
|
|
348
|
+
service_address: nil,
|
|
349
|
+
service_port: nil,
|
|
320
350
|
exception_transformer: nil,
|
|
321
351
|
lib_name: nil,
|
|
322
352
|
lib_version: nil
|
|
@@ -328,6 +358,8 @@ module Google
|
|
|
328
358
|
metadata: metadata,
|
|
329
359
|
exception_transformer: exception_transformer,
|
|
330
360
|
lib_name: lib_name,
|
|
361
|
+
service_address: service_address,
|
|
362
|
+
service_port: service_port,
|
|
331
363
|
lib_version: lib_version
|
|
332
364
|
}.select { |_, v| v != nil }
|
|
333
365
|
Google::Cloud::Dataproc::V1beta2::WorkflowTemplateServiceClient.new(**kwargs)
|
|
@@ -131,6 +131,10 @@ module Google
|
|
|
131
131
|
# The default timeout, in seconds, for calls made through this client.
|
|
132
132
|
# @param metadata [Hash]
|
|
133
133
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
134
|
+
# @param service_address [String]
|
|
135
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
136
|
+
# @param service_port [Integer]
|
|
137
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
134
138
|
# @param exception_transformer [Proc]
|
|
135
139
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
136
140
|
# custom error handling.
|
|
@@ -140,6 +144,8 @@ module Google
|
|
|
140
144
|
client_config: {},
|
|
141
145
|
timeout: DEFAULT_TIMEOUT,
|
|
142
146
|
metadata: nil,
|
|
147
|
+
service_address: nil,
|
|
148
|
+
service_port: nil,
|
|
143
149
|
exception_transformer: nil,
|
|
144
150
|
lib_name: nil,
|
|
145
151
|
lib_version: ""
|
|
@@ -194,8 +200,8 @@ module Google
|
|
|
194
200
|
end
|
|
195
201
|
|
|
196
202
|
# Allow overriding the service path/port in subclasses.
|
|
197
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
198
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
203
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
204
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
199
205
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
200
206
|
@autoscaling_policy_service_stub = Google::Gax::Grpc.create_stub(
|
|
201
207
|
service_path,
|
|
@@ -102,6 +102,10 @@ module Google
|
|
|
102
102
|
# The default timeout, in seconds, for calls made through this client.
|
|
103
103
|
# @param metadata [Hash]
|
|
104
104
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
105
|
+
# @param service_address [String]
|
|
106
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
107
|
+
# @param service_port [Integer]
|
|
108
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
105
109
|
# @param exception_transformer [Proc]
|
|
106
110
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
107
111
|
# custom error handling.
|
|
@@ -111,6 +115,8 @@ module Google
|
|
|
111
115
|
client_config: {},
|
|
112
116
|
timeout: DEFAULT_TIMEOUT,
|
|
113
117
|
metadata: nil,
|
|
118
|
+
service_address: nil,
|
|
119
|
+
service_port: nil,
|
|
114
120
|
exception_transformer: nil,
|
|
115
121
|
lib_name: nil,
|
|
116
122
|
lib_version: ""
|
|
@@ -128,7 +134,10 @@ module Google
|
|
|
128
134
|
client_config: client_config,
|
|
129
135
|
timeout: timeout,
|
|
130
136
|
lib_name: lib_name,
|
|
137
|
+
service_address: service_address,
|
|
138
|
+
service_port: service_port,
|
|
131
139
|
lib_version: lib_version,
|
|
140
|
+
metadata: metadata,
|
|
132
141
|
)
|
|
133
142
|
|
|
134
143
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
@@ -174,8 +183,8 @@ module Google
|
|
|
174
183
|
end
|
|
175
184
|
|
|
176
185
|
# Allow overriding the service path/port in subclasses.
|
|
177
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
178
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
186
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
187
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
179
188
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
180
189
|
@cluster_controller_stub = Google::Gax::Grpc.create_stub(
|
|
181
190
|
service_path,
|
|
@@ -94,6 +94,10 @@ module Google
|
|
|
94
94
|
# The default timeout, in seconds, for calls made through this client.
|
|
95
95
|
# @param metadata [Hash]
|
|
96
96
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
97
|
+
# @param service_address [String]
|
|
98
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
99
|
+
# @param service_port [Integer]
|
|
100
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
97
101
|
# @param exception_transformer [Proc]
|
|
98
102
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
99
103
|
# custom error handling.
|
|
@@ -103,6 +107,8 @@ module Google
|
|
|
103
107
|
client_config: {},
|
|
104
108
|
timeout: DEFAULT_TIMEOUT,
|
|
105
109
|
metadata: nil,
|
|
110
|
+
service_address: nil,
|
|
111
|
+
service_port: nil,
|
|
106
112
|
exception_transformer: nil,
|
|
107
113
|
lib_name: nil,
|
|
108
114
|
lib_version: ""
|
|
@@ -157,8 +163,8 @@ module Google
|
|
|
157
163
|
end
|
|
158
164
|
|
|
159
165
|
# Allow overriding the service path/port in subclasses.
|
|
160
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
161
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
166
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
167
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
162
168
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
163
169
|
@job_controller_stub = Google::Gax::Grpc.create_stub(
|
|
164
170
|
service_path,
|
|
@@ -137,6 +137,10 @@ module Google
|
|
|
137
137
|
# The default timeout, in seconds, for calls made through this client.
|
|
138
138
|
# @param metadata [Hash]
|
|
139
139
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
140
|
+
# @param service_address [String]
|
|
141
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
142
|
+
# @param service_port [Integer]
|
|
143
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
140
144
|
# @param exception_transformer [Proc]
|
|
141
145
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
142
146
|
# custom error handling.
|
|
@@ -146,6 +150,8 @@ module Google
|
|
|
146
150
|
client_config: {},
|
|
147
151
|
timeout: DEFAULT_TIMEOUT,
|
|
148
152
|
metadata: nil,
|
|
153
|
+
service_address: nil,
|
|
154
|
+
service_port: nil,
|
|
149
155
|
exception_transformer: nil,
|
|
150
156
|
lib_name: nil,
|
|
151
157
|
lib_version: ""
|
|
@@ -163,7 +169,10 @@ module Google
|
|
|
163
169
|
client_config: client_config,
|
|
164
170
|
timeout: timeout,
|
|
165
171
|
lib_name: lib_name,
|
|
172
|
+
service_address: service_address,
|
|
173
|
+
service_port: service_port,
|
|
166
174
|
lib_version: lib_version,
|
|
175
|
+
metadata: metadata,
|
|
167
176
|
)
|
|
168
177
|
|
|
169
178
|
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
|
@@ -209,8 +218,8 @@ module Google
|
|
|
209
218
|
end
|
|
210
219
|
|
|
211
220
|
# Allow overriding the service path/port in subclasses.
|
|
212
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
213
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
221
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
222
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
214
223
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
215
224
|
@workflow_template_service_stub = Google::Gax::Grpc.create_stub(
|
|
216
225
|
service_path,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-dataproc
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.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
|