google-cloud-talent 0.3.0 → 0.4.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/talent.rb +28 -0
- data/lib/google/cloud/talent/v4beta1.rb +57 -0
- data/lib/google/cloud/talent/v4beta1/application_pb.rb +1 -2
- data/lib/google/cloud/talent/v4beta1/application_service_client.rb +26 -24
- data/lib/google/cloud/talent/v4beta1/application_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/batch_pb.rb +30 -0
- data/lib/google/cloud/talent/v4beta1/common_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/company_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/company_service_client.rb +28 -29
- data/lib/google/cloud/talent/v4beta1/company_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/completion_client.rb +36 -32
- data/lib/google/cloud/talent/v4beta1/completion_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application.rb +14 -33
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/application_service.rb +18 -27
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/common.rb +144 -135
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company.rb +19 -36
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/company_service.rb +20 -32
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/completion_service.rb +30 -32
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event.rb +121 -41
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/event_service.rb +3 -7
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/filters.rb +239 -281
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/histogram.rb +9 -3
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job.rb +129 -142
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/job_service.rb +280 -215
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile.rb +198 -338
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/profile_service.rb +128 -108
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant.rb +11 -13
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/tenant_service.rb +16 -27
- data/lib/google/cloud/talent/v4beta1/doc/google/longrunning/operations.rb +51 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/protobuf/any.rb +131 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/rpc/status.rb +87 -0
- data/lib/google/cloud/talent/v4beta1/doc/google/type/postal_address.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service_client.rb +13 -10
- data/lib/google/cloud/talent/v4beta1/event_service_pb.rb +1 -0
- data/lib/google/cloud/talent/v4beta1/filters_pb.rb +6 -1
- data/lib/google/cloud/talent/v4beta1/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service_client.rb +528 -301
- data/lib/google/cloud/talent/v4beta1/job_service_client_config.json +10 -0
- data/lib/google/cloud/talent/v4beta1/job_service_pb.rb +13 -0
- data/lib/google/cloud/talent/v4beta1/job_service_services_pb.rb +16 -8
- data/lib/google/cloud/talent/v4beta1/profile_service_client.rb +118 -91
- data/lib/google/cloud/talent/v4beta1/profile_service_pb.rb +3 -0
- data/lib/google/cloud/talent/v4beta1/profile_service_services_pb.rb +3 -1
- data/lib/google/cloud/talent/v4beta1/tenant_pb.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/tenant_service_client.rb +24 -24
- data/lib/google/cloud/talent/v4beta1/tenant_service_pb.rb +1 -0
- data/lib/google/cloud/talent/version.rb +22 -0
- metadata +8 -9
- data/lib/google/cloud/talent/v4beta1/doc/google/cloud/talent/v4beta1/resume_service.rb +0 -98
- data/lib/google/cloud/talent/v4beta1/resume_service_client.rb +0 -296
- data/lib/google/cloud/talent/v4beta1/resume_service_client_config.json +0 -31
- data/lib/google/cloud/talent/v4beta1/resume_service_pb.rb +0 -37
- data/lib/google/cloud/talent/v4beta1/resume_service_services_pb.rb +0 -75
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b4240a9b4a6731603514cb9f8f2a34e0f6481f41fd7482db81adea356e002039
|
|
4
|
+
data.tar.gz: 785e8fa1983f0ff3aba1bdaa89ed0f6a93b82b3b0a6a78bf5e2a0c509fe2edca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1dcb7f63d1ef2af26b3f3988197ab9297c3205957a861d6df125cf615f0a00bbd05bed42cd3cc84dde79019689afee2a371b4f90d453653e59eb13bc29949255
|
|
7
|
+
data.tar.gz: 65269a50cd272863dc22ffd153ca27b8695b4d7dbfa41f38a600fb14f9aa191b870d1cd8fa533ddbcfaa6285822bb90f55b6abf8873ae93d52abc0a29923690e
|
data/lib/google/cloud/talent.rb
CHANGED
|
@@ -122,6 +122,10 @@ module Google
|
|
|
122
122
|
# The default timeout, in seconds, for calls made through this client.
|
|
123
123
|
# @param metadata [Hash]
|
|
124
124
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
125
|
+
# @param service_address [String]
|
|
126
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
127
|
+
# @param service_port [Integer]
|
|
128
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
125
129
|
# @param exception_transformer [Proc]
|
|
126
130
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
127
131
|
# custom error handling.
|
|
@@ -174,6 +178,10 @@ module Google
|
|
|
174
178
|
# The default timeout, in seconds, for calls made through this client.
|
|
175
179
|
# @param metadata [Hash]
|
|
176
180
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
181
|
+
# @param service_address [String]
|
|
182
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
183
|
+
# @param service_port [Integer]
|
|
184
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
177
185
|
# @param exception_transformer [Proc]
|
|
178
186
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
179
187
|
# custom error handling.
|
|
@@ -226,6 +234,10 @@ module Google
|
|
|
226
234
|
# The default timeout, in seconds, for calls made through this client.
|
|
227
235
|
# @param metadata [Hash]
|
|
228
236
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
237
|
+
# @param service_address [String]
|
|
238
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
239
|
+
# @param service_port [Integer]
|
|
240
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
229
241
|
# @param exception_transformer [Proc]
|
|
230
242
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
231
243
|
# custom error handling.
|
|
@@ -278,6 +290,10 @@ module Google
|
|
|
278
290
|
# The default timeout, in seconds, for calls made through this client.
|
|
279
291
|
# @param metadata [Hash]
|
|
280
292
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
293
|
+
# @param service_address [String]
|
|
294
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
295
|
+
# @param service_port [Integer]
|
|
296
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
281
297
|
# @param exception_transformer [Proc]
|
|
282
298
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
283
299
|
# custom error handling.
|
|
@@ -330,6 +346,10 @@ module Google
|
|
|
330
346
|
# The default timeout, in seconds, for calls made through this client.
|
|
331
347
|
# @param metadata [Hash]
|
|
332
348
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
349
|
+
# @param service_address [String]
|
|
350
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
351
|
+
# @param service_port [Integer]
|
|
352
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
333
353
|
# @param exception_transformer [Proc]
|
|
334
354
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
335
355
|
# custom error handling.
|
|
@@ -383,6 +403,10 @@ module Google
|
|
|
383
403
|
# The default timeout, in seconds, for calls made through this client.
|
|
384
404
|
# @param metadata [Hash]
|
|
385
405
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
406
|
+
# @param service_address [String]
|
|
407
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
408
|
+
# @param service_port [Integer]
|
|
409
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
386
410
|
# @param exception_transformer [Proc]
|
|
387
411
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
388
412
|
# custom error handling.
|
|
@@ -435,6 +459,10 @@ module Google
|
|
|
435
459
|
# The default timeout, in seconds, for calls made through this client.
|
|
436
460
|
# @param metadata [Hash]
|
|
437
461
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
462
|
+
# @param service_address [String]
|
|
463
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
464
|
+
# @param service_port [Integer]
|
|
465
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
438
466
|
# @param exception_transformer [Proc]
|
|
439
467
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
440
468
|
# custom error handling.
|
|
@@ -21,6 +21,7 @@ require "google/cloud/talent/v4beta1/event_service_client"
|
|
|
21
21
|
require "google/cloud/talent/v4beta1/job_service_client"
|
|
22
22
|
require "google/cloud/talent/v4beta1/profile_service_client"
|
|
23
23
|
require "google/cloud/talent/v4beta1/tenant_service_client"
|
|
24
|
+
require "google/cloud/talent/v4beta1/batch_pb"
|
|
24
25
|
|
|
25
26
|
module Google
|
|
26
27
|
module Cloud
|
|
@@ -117,6 +118,10 @@ module Google
|
|
|
117
118
|
# The default timeout, in seconds, for calls made through this client.
|
|
118
119
|
# @param metadata [Hash]
|
|
119
120
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
121
|
+
# @param service_address [String]
|
|
122
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
123
|
+
# @param service_port [Integer]
|
|
124
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
120
125
|
# @param exception_transformer [Proc]
|
|
121
126
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
122
127
|
# custom error handling.
|
|
@@ -126,6 +131,8 @@ module Google
|
|
|
126
131
|
client_config: nil,
|
|
127
132
|
timeout: nil,
|
|
128
133
|
metadata: nil,
|
|
134
|
+
service_address: nil,
|
|
135
|
+
service_port: nil,
|
|
129
136
|
exception_transformer: nil,
|
|
130
137
|
lib_name: nil,
|
|
131
138
|
lib_version: nil
|
|
@@ -137,6 +144,8 @@ module Google
|
|
|
137
144
|
metadata: metadata,
|
|
138
145
|
exception_transformer: exception_transformer,
|
|
139
146
|
lib_name: lib_name,
|
|
147
|
+
service_address: service_address,
|
|
148
|
+
service_port: service_port,
|
|
140
149
|
lib_version: lib_version
|
|
141
150
|
}.select { |_, v| v != nil }
|
|
142
151
|
Google::Cloud::Talent::V4beta1::ApplicationServiceClient.new(**kwargs)
|
|
@@ -173,6 +182,10 @@ module Google
|
|
|
173
182
|
# The default timeout, in seconds, for calls made through this client.
|
|
174
183
|
# @param metadata [Hash]
|
|
175
184
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
185
|
+
# @param service_address [String]
|
|
186
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
187
|
+
# @param service_port [Integer]
|
|
188
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
176
189
|
# @param exception_transformer [Proc]
|
|
177
190
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
178
191
|
# custom error handling.
|
|
@@ -182,6 +195,8 @@ module Google
|
|
|
182
195
|
client_config: nil,
|
|
183
196
|
timeout: nil,
|
|
184
197
|
metadata: nil,
|
|
198
|
+
service_address: nil,
|
|
199
|
+
service_port: nil,
|
|
185
200
|
exception_transformer: nil,
|
|
186
201
|
lib_name: nil,
|
|
187
202
|
lib_version: nil
|
|
@@ -193,6 +208,8 @@ module Google
|
|
|
193
208
|
metadata: metadata,
|
|
194
209
|
exception_transformer: exception_transformer,
|
|
195
210
|
lib_name: lib_name,
|
|
211
|
+
service_address: service_address,
|
|
212
|
+
service_port: service_port,
|
|
196
213
|
lib_version: lib_version
|
|
197
214
|
}.select { |_, v| v != nil }
|
|
198
215
|
Google::Cloud::Talent::V4beta1::CompanyServiceClient.new(**kwargs)
|
|
@@ -229,6 +246,10 @@ module Google
|
|
|
229
246
|
# The default timeout, in seconds, for calls made through this client.
|
|
230
247
|
# @param metadata [Hash]
|
|
231
248
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
249
|
+
# @param service_address [String]
|
|
250
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
251
|
+
# @param service_port [Integer]
|
|
252
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
232
253
|
# @param exception_transformer [Proc]
|
|
233
254
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
234
255
|
# custom error handling.
|
|
@@ -238,6 +259,8 @@ module Google
|
|
|
238
259
|
client_config: nil,
|
|
239
260
|
timeout: nil,
|
|
240
261
|
metadata: nil,
|
|
262
|
+
service_address: nil,
|
|
263
|
+
service_port: nil,
|
|
241
264
|
exception_transformer: nil,
|
|
242
265
|
lib_name: nil,
|
|
243
266
|
lib_version: nil
|
|
@@ -249,6 +272,8 @@ module Google
|
|
|
249
272
|
metadata: metadata,
|
|
250
273
|
exception_transformer: exception_transformer,
|
|
251
274
|
lib_name: lib_name,
|
|
275
|
+
service_address: service_address,
|
|
276
|
+
service_port: service_port,
|
|
252
277
|
lib_version: lib_version
|
|
253
278
|
}.select { |_, v| v != nil }
|
|
254
279
|
Google::Cloud::Talent::V4beta1::CompletionClient.new(**kwargs)
|
|
@@ -285,6 +310,10 @@ module Google
|
|
|
285
310
|
# The default timeout, in seconds, for calls made through this client.
|
|
286
311
|
# @param metadata [Hash]
|
|
287
312
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
313
|
+
# @param service_address [String]
|
|
314
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
315
|
+
# @param service_port [Integer]
|
|
316
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
288
317
|
# @param exception_transformer [Proc]
|
|
289
318
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
290
319
|
# custom error handling.
|
|
@@ -294,6 +323,8 @@ module Google
|
|
|
294
323
|
client_config: nil,
|
|
295
324
|
timeout: nil,
|
|
296
325
|
metadata: nil,
|
|
326
|
+
service_address: nil,
|
|
327
|
+
service_port: nil,
|
|
297
328
|
exception_transformer: nil,
|
|
298
329
|
lib_name: nil,
|
|
299
330
|
lib_version: nil
|
|
@@ -305,6 +336,8 @@ module Google
|
|
|
305
336
|
metadata: metadata,
|
|
306
337
|
exception_transformer: exception_transformer,
|
|
307
338
|
lib_name: lib_name,
|
|
339
|
+
service_address: service_address,
|
|
340
|
+
service_port: service_port,
|
|
308
341
|
lib_version: lib_version
|
|
309
342
|
}.select { |_, v| v != nil }
|
|
310
343
|
Google::Cloud::Talent::V4beta1::EventServiceClient.new(**kwargs)
|
|
@@ -341,6 +374,10 @@ module Google
|
|
|
341
374
|
# The default timeout, in seconds, for calls made through this client.
|
|
342
375
|
# @param metadata [Hash]
|
|
343
376
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
377
|
+
# @param service_address [String]
|
|
378
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
379
|
+
# @param service_port [Integer]
|
|
380
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
344
381
|
# @param exception_transformer [Proc]
|
|
345
382
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
346
383
|
# custom error handling.
|
|
@@ -350,6 +387,8 @@ module Google
|
|
|
350
387
|
client_config: nil,
|
|
351
388
|
timeout: nil,
|
|
352
389
|
metadata: nil,
|
|
390
|
+
service_address: nil,
|
|
391
|
+
service_port: nil,
|
|
353
392
|
exception_transformer: nil,
|
|
354
393
|
lib_name: nil,
|
|
355
394
|
lib_version: nil
|
|
@@ -361,6 +400,8 @@ module Google
|
|
|
361
400
|
metadata: metadata,
|
|
362
401
|
exception_transformer: exception_transformer,
|
|
363
402
|
lib_name: lib_name,
|
|
403
|
+
service_address: service_address,
|
|
404
|
+
service_port: service_port,
|
|
364
405
|
lib_version: lib_version
|
|
365
406
|
}.select { |_, v| v != nil }
|
|
366
407
|
Google::Cloud::Talent::V4beta1::JobServiceClient.new(**kwargs)
|
|
@@ -398,6 +439,10 @@ module Google
|
|
|
398
439
|
# The default timeout, in seconds, for calls made through this client.
|
|
399
440
|
# @param metadata [Hash]
|
|
400
441
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
442
|
+
# @param service_address [String]
|
|
443
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
444
|
+
# @param service_port [Integer]
|
|
445
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
401
446
|
# @param exception_transformer [Proc]
|
|
402
447
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
403
448
|
# custom error handling.
|
|
@@ -407,6 +452,8 @@ module Google
|
|
|
407
452
|
client_config: nil,
|
|
408
453
|
timeout: nil,
|
|
409
454
|
metadata: nil,
|
|
455
|
+
service_address: nil,
|
|
456
|
+
service_port: nil,
|
|
410
457
|
exception_transformer: nil,
|
|
411
458
|
lib_name: nil,
|
|
412
459
|
lib_version: nil
|
|
@@ -418,6 +465,8 @@ module Google
|
|
|
418
465
|
metadata: metadata,
|
|
419
466
|
exception_transformer: exception_transformer,
|
|
420
467
|
lib_name: lib_name,
|
|
468
|
+
service_address: service_address,
|
|
469
|
+
service_port: service_port,
|
|
421
470
|
lib_version: lib_version
|
|
422
471
|
}.select { |_, v| v != nil }
|
|
423
472
|
Google::Cloud::Talent::V4beta1::ProfileServiceClient.new(**kwargs)
|
|
@@ -454,6 +503,10 @@ module Google
|
|
|
454
503
|
# The default timeout, in seconds, for calls made through this client.
|
|
455
504
|
# @param metadata [Hash]
|
|
456
505
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
506
|
+
# @param service_address [String]
|
|
507
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
508
|
+
# @param service_port [Integer]
|
|
509
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
457
510
|
# @param exception_transformer [Proc]
|
|
458
511
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
459
512
|
# custom error handling.
|
|
@@ -463,6 +516,8 @@ module Google
|
|
|
463
516
|
client_config: nil,
|
|
464
517
|
timeout: nil,
|
|
465
518
|
metadata: nil,
|
|
519
|
+
service_address: nil,
|
|
520
|
+
service_port: nil,
|
|
466
521
|
exception_transformer: nil,
|
|
467
522
|
lib_name: nil,
|
|
468
523
|
lib_version: nil
|
|
@@ -474,6 +529,8 @@ module Google
|
|
|
474
529
|
metadata: metadata,
|
|
475
530
|
exception_transformer: exception_transformer,
|
|
476
531
|
lib_name: lib_name,
|
|
532
|
+
service_address: service_address,
|
|
533
|
+
service_port: service_port,
|
|
477
534
|
lib_version: lib_version
|
|
478
535
|
}.select { |_, v| v != nil }
|
|
479
536
|
Google::Cloud::Talent::V4beta1::TenantServiceClient.new(**kwargs)
|
|
@@ -4,12 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
7
8
|
require 'google/cloud/talent/v4beta1/common_pb'
|
|
8
|
-
require 'google/cloud/talent/v4beta1/job_pb'
|
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
|
10
10
|
require 'google/protobuf/wrappers_pb'
|
|
11
11
|
require 'google/type/date_pb'
|
|
12
|
-
require 'google/api/annotations_pb'
|
|
13
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
14
13
|
add_message "google.cloud.talent.v4beta1.Application" do
|
|
15
14
|
optional :name, :string, 1
|
|
@@ -27,6 +27,7 @@ require "google/gax"
|
|
|
27
27
|
|
|
28
28
|
require "google/cloud/talent/v4beta1/application_service_pb"
|
|
29
29
|
require "google/cloud/talent/v4beta1/credentials"
|
|
30
|
+
require "google/cloud/talent/version"
|
|
30
31
|
|
|
31
32
|
module Google
|
|
32
33
|
module Cloud
|
|
@@ -135,6 +136,10 @@ module Google
|
|
|
135
136
|
# The default timeout, in seconds, for calls made through this client.
|
|
136
137
|
# @param metadata [Hash]
|
|
137
138
|
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
|
139
|
+
# @param service_address [String]
|
|
140
|
+
# Override for the service hostname, or `nil` to leave as the default.
|
|
141
|
+
# @param service_port [Integer]
|
|
142
|
+
# Override for the service port, or `nil` to leave as the default.
|
|
138
143
|
# @param exception_transformer [Proc]
|
|
139
144
|
# An optional proc that intercepts any exceptions raised during an API call to inject
|
|
140
145
|
# custom error handling.
|
|
@@ -144,6 +149,8 @@ module Google
|
|
|
144
149
|
client_config: {},
|
|
145
150
|
timeout: DEFAULT_TIMEOUT,
|
|
146
151
|
metadata: nil,
|
|
152
|
+
service_address: nil,
|
|
153
|
+
service_port: nil,
|
|
147
154
|
exception_transformer: nil,
|
|
148
155
|
lib_name: nil,
|
|
149
156
|
lib_version: ""
|
|
@@ -171,7 +178,7 @@ module Google
|
|
|
171
178
|
updater_proc = credentials.updater_proc
|
|
172
179
|
end
|
|
173
180
|
|
|
174
|
-
package_version =
|
|
181
|
+
package_version = Google::Cloud::Talent::VERSION
|
|
175
182
|
|
|
176
183
|
google_api_client = "gl-ruby/#{RUBY_VERSION}"
|
|
177
184
|
google_api_client << " #{lib_name}/#{lib_version}" if lib_name
|
|
@@ -198,8 +205,8 @@ module Google
|
|
|
198
205
|
end
|
|
199
206
|
|
|
200
207
|
# Allow overriding the service path/port in subclasses.
|
|
201
|
-
service_path = self.class::SERVICE_ADDRESS
|
|
202
|
-
port = self.class::DEFAULT_SERVICE_PORT
|
|
208
|
+
service_path = service_address || self.class::SERVICE_ADDRESS
|
|
209
|
+
port = service_port || self.class::DEFAULT_SERVICE_PORT
|
|
203
210
|
interceptors = self.class::GRPC_INTERCEPTORS
|
|
204
211
|
@application_service_stub = Google::Gax::Grpc.create_stub(
|
|
205
212
|
service_path,
|
|
@@ -259,17 +266,14 @@ module Google
|
|
|
259
266
|
# Creates a new application entity.
|
|
260
267
|
#
|
|
261
268
|
# @param parent [String]
|
|
262
|
-
# Required.
|
|
263
|
-
#
|
|
264
|
-
# Resource name of the profile under which the application is created.
|
|
269
|
+
# Required. Resource name of the profile under which the application is
|
|
270
|
+
# created.
|
|
265
271
|
#
|
|
266
272
|
# The format is
|
|
267
273
|
# "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for
|
|
268
274
|
# example, "projects/test-project/tenants/test-tenant/profiles/test-profile".
|
|
269
275
|
# @param application [Google::Cloud::Talent::V4beta1::Application | Hash]
|
|
270
|
-
# Required.
|
|
271
|
-
#
|
|
272
|
-
# The application to be created.
|
|
276
|
+
# Required. The application to be created.
|
|
273
277
|
# A hash of the same form as `Google::Cloud::Talent::V4beta1::Application`
|
|
274
278
|
# can also be provided.
|
|
275
279
|
# @param options [Google::Gax::CallOptions]
|
|
@@ -306,9 +310,7 @@ module Google
|
|
|
306
310
|
# Retrieves specified application.
|
|
307
311
|
#
|
|
308
312
|
# @param name [String]
|
|
309
|
-
# Required.
|
|
310
|
-
#
|
|
311
|
-
# The resource name of the application to be retrieved.
|
|
313
|
+
# Required. The resource name of the application to be retrieved.
|
|
312
314
|
#
|
|
313
315
|
# The format is
|
|
314
316
|
# "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}",
|
|
@@ -343,20 +345,23 @@ module Google
|
|
|
343
345
|
# Updates specified application.
|
|
344
346
|
#
|
|
345
347
|
# @param application [Google::Cloud::Talent::V4beta1::Application | Hash]
|
|
346
|
-
# Required.
|
|
347
|
-
#
|
|
348
|
-
# The application resource to replace the current resource in the system.
|
|
348
|
+
# Required. The application resource to replace the current resource in the
|
|
349
|
+
# system.
|
|
349
350
|
# A hash of the same form as `Google::Cloud::Talent::V4beta1::Application`
|
|
350
351
|
# can also be provided.
|
|
351
352
|
# @param update_mask [Google::Protobuf::FieldMask | Hash]
|
|
352
353
|
# Optional but strongly recommended for the best service
|
|
353
354
|
# experience.
|
|
354
355
|
#
|
|
355
|
-
# If
|
|
356
|
-
# {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#
|
|
356
|
+
# If
|
|
357
|
+
# {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#update_mask update_mask}
|
|
358
|
+
# is provided, only the specified fields in
|
|
359
|
+
# {Google::Cloud::Talent::V4beta1::UpdateApplicationRequest#application application}
|
|
360
|
+
# are updated. Otherwise all the fields are updated.
|
|
357
361
|
#
|
|
358
362
|
# A field mask to specify the application fields to be updated. Only
|
|
359
|
-
# top level fields of {Google::Cloud::Talent::V4beta1::Application Application}
|
|
363
|
+
# top level fields of {Google::Cloud::Talent::V4beta1::Application Application}
|
|
364
|
+
# are supported.
|
|
360
365
|
# A hash of the same form as `Google::Protobuf::FieldMask`
|
|
361
366
|
# can also be provided.
|
|
362
367
|
# @param options [Google::Gax::CallOptions]
|
|
@@ -392,9 +397,7 @@ module Google
|
|
|
392
397
|
# Deletes specified application.
|
|
393
398
|
#
|
|
394
399
|
# @param name [String]
|
|
395
|
-
# Required.
|
|
396
|
-
#
|
|
397
|
-
# The resource name of the application to be deleted.
|
|
400
|
+
# Required. The resource name of the application to be deleted.
|
|
398
401
|
#
|
|
399
402
|
# The format is
|
|
400
403
|
# "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}",
|
|
@@ -429,9 +432,8 @@ module Google
|
|
|
429
432
|
# Lists all applications associated with the profile.
|
|
430
433
|
#
|
|
431
434
|
# @param parent [String]
|
|
432
|
-
# Required.
|
|
433
|
-
#
|
|
434
|
-
# Resource name of the profile under which the application is created.
|
|
435
|
+
# Required. Resource name of the profile under which the application is
|
|
436
|
+
# created.
|
|
435
437
|
#
|
|
436
438
|
# The format is
|
|
437
439
|
# "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for
|
|
@@ -9,12 +9,42 @@ require 'google/cloud/talent/v4beta1/job_pb'
|
|
|
9
9
|
require 'google/protobuf/timestamp_pb'
|
|
10
10
|
require 'google/rpc/status_pb'
|
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
12
|
+
add_message "google.cloud.talent.v4beta1.BatchOperationMetadata" do
|
|
13
|
+
optional :state, :enum, 1, "google.cloud.talent.v4beta1.BatchOperationMetadata.State"
|
|
14
|
+
optional :state_description, :string, 2
|
|
15
|
+
optional :success_count, :int32, 3
|
|
16
|
+
optional :failure_count, :int32, 4
|
|
17
|
+
optional :total_count, :int32, 5
|
|
18
|
+
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
|
19
|
+
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
|
20
|
+
optional :end_time, :message, 8, "google.protobuf.Timestamp"
|
|
21
|
+
end
|
|
22
|
+
add_enum "google.cloud.talent.v4beta1.BatchOperationMetadata.State" do
|
|
23
|
+
value :STATE_UNSPECIFIED, 0
|
|
24
|
+
value :INITIALIZING, 1
|
|
25
|
+
value :PROCESSING, 2
|
|
26
|
+
value :SUCCEEDED, 3
|
|
27
|
+
value :FAILED, 4
|
|
28
|
+
value :CANCELLING, 5
|
|
29
|
+
value :CANCELLED, 6
|
|
30
|
+
end
|
|
31
|
+
add_message "google.cloud.talent.v4beta1.JobOperationResult" do
|
|
32
|
+
repeated :job_results, :message, 1, "google.cloud.talent.v4beta1.JobOperationResult.JobResult"
|
|
33
|
+
end
|
|
34
|
+
add_message "google.cloud.talent.v4beta1.JobOperationResult.JobResult" do
|
|
35
|
+
optional :job, :message, 1, "google.cloud.talent.v4beta1.Job"
|
|
36
|
+
optional :status, :message, 2, "google.rpc.Status"
|
|
37
|
+
end
|
|
12
38
|
end
|
|
13
39
|
|
|
14
40
|
module Google
|
|
15
41
|
module Cloud
|
|
16
42
|
module Talent
|
|
17
43
|
module V4beta1
|
|
44
|
+
BatchOperationMetadata = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.BatchOperationMetadata").msgclass
|
|
45
|
+
BatchOperationMetadata::State = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.BatchOperationMetadata.State").enummodule
|
|
46
|
+
JobOperationResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobOperationResult").msgclass
|
|
47
|
+
JobOperationResult::JobResult = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4beta1.JobOperationResult.JobResult").msgclass
|
|
18
48
|
end
|
|
19
49
|
end
|
|
20
50
|
end
|