google-cloud-talent-v4 0.4.3 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/talent/v4/common_pb.rb +5 -2
- data/lib/google/cloud/talent/v4/company_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/company_service/client.rb +106 -15
- data/lib/google/cloud/talent/v4/company_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/company_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/completion/client.rb +20 -3
- data/lib/google/cloud/talent/v4/completion_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/completion_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/event_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/event_service/client.rb +20 -3
- data/lib/google/cloud/talent/v4/event_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/event_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/filters_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/histogram_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/job_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/job_service/client.rb +273 -37
- data/lib/google/cloud/talent/v4/job_service/operations.rb +115 -12
- data/lib/google/cloud/talent/v4/job_service_pb.rb +13 -2
- data/lib/google/cloud/talent/v4/job_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/tenant_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/tenant_service/client.rb +106 -15
- data/lib/google/cloud/talent/v4/tenant_service_pb.rb +2 -2
- data/lib/google/cloud/talent/v4/tenant_service_services_pb.rb +1 -1
- data/lib/google/cloud/talent/v4/version.rb +1 -1
- data/proto_docs/google/cloud/talent/v4/common.rb +12 -1
- data/proto_docs/google/cloud/talent/v4/filters.rb +12 -8
- data/proto_docs/google/cloud/talent/v4/job.rb +10 -1
- data/proto_docs/google/cloud/talent/v4/job_service.rb +82 -8
- metadata +2 -2
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4/job_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -17,6 +15,8 @@ require 'google/protobuf/duration_pb'
|
|
17
15
|
require 'google/protobuf/empty_pb'
|
18
16
|
require 'google/protobuf/field_mask_pb'
|
19
17
|
require 'google/rpc/status_pb'
|
18
|
+
require 'google/protobuf'
|
19
|
+
|
20
20
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
21
21
|
add_file("google/cloud/talent/v4/job_service.proto", :syntax => :proto3) do
|
22
22
|
add_message "google.cloud.talent.v4.CreateJobRequest" do
|
@@ -60,6 +60,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
60
60
|
optional :diversification_level, :enum, 13, "google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel"
|
61
61
|
optional :custom_ranking_info, :message, 14, "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo"
|
62
62
|
optional :disable_keyword_match, :bool, 16
|
63
|
+
optional :keyword_match_mode, :enum, 18, "google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode"
|
63
64
|
end
|
64
65
|
add_message "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo" do
|
65
66
|
optional :importance_level, :enum, 1, "google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel"
|
@@ -83,6 +84,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
83
84
|
value :DIVERSIFICATION_LEVEL_UNSPECIFIED, 0
|
84
85
|
value :DISABLED, 1
|
85
86
|
value :SIMPLE, 2
|
87
|
+
value :ONE_PER_COMPANY, 3
|
88
|
+
value :TWO_PER_COMPANY, 4
|
89
|
+
value :DIVERSIFY_BY_LOOSER_SIMILARITY, 5
|
90
|
+
end
|
91
|
+
add_enum "google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode" do
|
92
|
+
value :KEYWORD_MATCH_MODE_UNSPECIFIED, 0
|
93
|
+
value :KEYWORD_MATCH_DISABLED, 1
|
94
|
+
value :KEYWORD_MATCH_ALL, 2
|
95
|
+
value :KEYWORD_MATCH_TITLE_ONLY, 3
|
86
96
|
end
|
87
97
|
add_message "google.cloud.talent.v4.SearchJobsResponse" do
|
88
98
|
repeated :matching_jobs, :message, 1, "google.cloud.talent.v4.SearchJobsResponse.MatchingJob"
|
@@ -156,6 +166,7 @@ module Google
|
|
156
166
|
SearchJobsRequest::CustomRankingInfo::ImportanceLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ImportanceLevel").enummodule
|
157
167
|
SearchJobsRequest::SearchMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.SearchMode").enummodule
|
158
168
|
SearchJobsRequest::DiversificationLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel").enummodule
|
169
|
+
SearchJobsRequest::KeywordMatchMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode").enummodule
|
159
170
|
SearchJobsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsResponse").msgclass
|
160
171
|
SearchJobsResponse::MatchingJob = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsResponse.MatchingJob").msgclass
|
161
172
|
SearchJobsResponse::CommuteInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.talent.v4.SearchJobsResponse.CommuteInfo").msgclass
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# A service handles job management, including job CRUD, enumeration and search.
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4/tenant.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/field_behavior_pb'
|
7
5
|
require 'google/api/resource_pb'
|
8
6
|
require 'google/api/annotations_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/talent/v4/tenant.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.talent.v4.Tenant" do
|
@@ -197,6 +197,21 @@ module Google
|
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
199
199
|
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/talent/v4"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Talent::V4::TenantService::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Talent::V4::CreateTenantRequest.new
|
208
|
+
#
|
209
|
+
# # Call the create_tenant method.
|
210
|
+
# result = client.create_tenant request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Tenant.
|
213
|
+
# p result
|
214
|
+
#
|
200
215
|
def create_tenant request, options = nil
|
201
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
202
217
|
|
@@ -214,9 +229,11 @@ module Google
|
|
214
229
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
215
230
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
216
231
|
|
217
|
-
header_params = {
|
218
|
-
|
219
|
-
|
232
|
+
header_params = {}
|
233
|
+
if request.parent
|
234
|
+
header_params["parent"] = request.parent
|
235
|
+
end
|
236
|
+
|
220
237
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
221
238
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
222
239
|
|
@@ -268,6 +285,21 @@ module Google
|
|
268
285
|
#
|
269
286
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
270
287
|
#
|
288
|
+
# @example Basic example
|
289
|
+
# require "google/cloud/talent/v4"
|
290
|
+
#
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
292
|
+
# client = Google::Cloud::Talent::V4::TenantService::Client.new
|
293
|
+
#
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
295
|
+
# request = Google::Cloud::Talent::V4::GetTenantRequest.new
|
296
|
+
#
|
297
|
+
# # Call the get_tenant method.
|
298
|
+
# result = client.get_tenant request
|
299
|
+
#
|
300
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Tenant.
|
301
|
+
# p result
|
302
|
+
#
|
271
303
|
def get_tenant request, options = nil
|
272
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
305
|
|
@@ -285,9 +317,11 @@ module Google
|
|
285
317
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
286
318
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
287
319
|
|
288
|
-
header_params = {
|
289
|
-
|
290
|
-
|
320
|
+
header_params = {}
|
321
|
+
if request.name
|
322
|
+
header_params["name"] = request.name
|
323
|
+
end
|
324
|
+
|
291
325
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
292
326
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
293
327
|
|
@@ -344,6 +378,21 @@ module Google
|
|
344
378
|
#
|
345
379
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
346
380
|
#
|
381
|
+
# @example Basic example
|
382
|
+
# require "google/cloud/talent/v4"
|
383
|
+
#
|
384
|
+
# # Create a client object. The client can be reused for multiple calls.
|
385
|
+
# client = Google::Cloud::Talent::V4::TenantService::Client.new
|
386
|
+
#
|
387
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
388
|
+
# request = Google::Cloud::Talent::V4::UpdateTenantRequest.new
|
389
|
+
#
|
390
|
+
# # Call the update_tenant method.
|
391
|
+
# result = client.update_tenant request
|
392
|
+
#
|
393
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Tenant.
|
394
|
+
# p result
|
395
|
+
#
|
347
396
|
def update_tenant request, options = nil
|
348
397
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
349
398
|
|
@@ -361,9 +410,11 @@ module Google
|
|
361
410
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
362
411
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
363
412
|
|
364
|
-
header_params = {
|
365
|
-
|
366
|
-
|
413
|
+
header_params = {}
|
414
|
+
if request.tenant&.name
|
415
|
+
header_params["tenant.name"] = request.tenant.name
|
416
|
+
end
|
417
|
+
|
367
418
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
368
419
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
369
420
|
|
@@ -415,6 +466,21 @@ module Google
|
|
415
466
|
#
|
416
467
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
417
468
|
#
|
469
|
+
# @example Basic example
|
470
|
+
# require "google/cloud/talent/v4"
|
471
|
+
#
|
472
|
+
# # Create a client object. The client can be reused for multiple calls.
|
473
|
+
# client = Google::Cloud::Talent::V4::TenantService::Client.new
|
474
|
+
#
|
475
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
476
|
+
# request = Google::Cloud::Talent::V4::DeleteTenantRequest.new
|
477
|
+
#
|
478
|
+
# # Call the delete_tenant method.
|
479
|
+
# result = client.delete_tenant request
|
480
|
+
#
|
481
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
482
|
+
# p result
|
483
|
+
#
|
418
484
|
def delete_tenant request, options = nil
|
419
485
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
420
486
|
|
@@ -432,9 +498,11 @@ module Google
|
|
432
498
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
433
499
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
434
500
|
|
435
|
-
header_params = {
|
436
|
-
|
437
|
-
|
501
|
+
header_params = {}
|
502
|
+
if request.name
|
503
|
+
header_params["name"] = request.name
|
504
|
+
end
|
505
|
+
|
438
506
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
439
507
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
440
508
|
|
@@ -491,6 +559,27 @@ module Google
|
|
491
559
|
#
|
492
560
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
493
561
|
#
|
562
|
+
# @example Basic example
|
563
|
+
# require "google/cloud/talent/v4"
|
564
|
+
#
|
565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
566
|
+
# client = Google::Cloud::Talent::V4::TenantService::Client.new
|
567
|
+
#
|
568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
569
|
+
# request = Google::Cloud::Talent::V4::ListTenantsRequest.new
|
570
|
+
#
|
571
|
+
# # Call the list_tenants method.
|
572
|
+
# result = client.list_tenants request
|
573
|
+
#
|
574
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
575
|
+
# # iterate over all elements by calling #each, and the enumerable
|
576
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
577
|
+
# # methods are also available for managing paging directly.
|
578
|
+
# result.each do |response|
|
579
|
+
# # Each element is of type ::Google::Cloud::Talent::V4::Tenant.
|
580
|
+
# p response
|
581
|
+
# end
|
582
|
+
#
|
494
583
|
def list_tenants request, options = nil
|
495
584
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
496
585
|
|
@@ -508,9 +597,11 @@ module Google
|
|
508
597
|
gapic_version: ::Google::Cloud::Talent::V4::VERSION
|
509
598
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
510
599
|
|
511
|
-
header_params = {
|
512
|
-
|
513
|
-
|
600
|
+
header_params = {}
|
601
|
+
if request.parent
|
602
|
+
header_params["parent"] = request.parent
|
603
|
+
end
|
604
|
+
|
514
605
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
515
606
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
516
607
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/talent/v4/tenant_service.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -11,6 +9,8 @@ require 'google/cloud/talent/v4/common_pb'
|
|
11
9
|
require 'google/cloud/talent/v4/tenant_pb'
|
12
10
|
require 'google/protobuf/empty_pb'
|
13
11
|
require 'google/protobuf/field_mask_pb'
|
12
|
+
require 'google/protobuf'
|
13
|
+
|
14
14
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
15
|
add_file("google/cloud/talent/v4/tenant_service.proto", :syntax => :proto3) do
|
16
16
|
add_message "google.cloud.talent.v4.CreateTenantRequest" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# A service that handles tenant management, including CRUD and enumeration.
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -865,7 +865,8 @@ module Google
|
|
865
865
|
SIMPLE_FORMATTING_ONLY = 2
|
866
866
|
end
|
867
867
|
|
868
|
-
# Method for commute.
|
868
|
+
# Method for commute. Walking, biking and wheelchair accessible transit is
|
869
|
+
# still in the Preview stage.
|
869
870
|
module CommuteMethod
|
870
871
|
# Commute method isn't specified.
|
871
872
|
COMMUTE_METHOD_UNSPECIFIED = 0
|
@@ -876,6 +877,16 @@ module Google
|
|
876
877
|
# Commute time is calculated based on public transit including bus, metro,
|
877
878
|
# subway, and so on.
|
878
879
|
TRANSIT = 2
|
880
|
+
|
881
|
+
# Commute time is calculated based on walking time.
|
882
|
+
WALKING = 3
|
883
|
+
|
884
|
+
# Commute time is calculated based on biking time.
|
885
|
+
CYCLING = 4
|
886
|
+
|
887
|
+
# Commute time is calculated based on public transit that is wheelchair
|
888
|
+
# accessible.
|
889
|
+
TRANSIT_ACCESSIBLE = 5
|
879
890
|
end
|
880
891
|
end
|
881
892
|
end
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
# Boolean expressions (AND/OR/NOT) are supported up to 3 levels of
|
125
125
|
# nesting (for example, "((A AND B AND C) OR NOT D) AND E"), a maximum of 100
|
126
126
|
# comparisons or functions are allowed in the expression. The expression
|
127
|
-
# must be <
|
127
|
+
# must be < 10000 bytes in length.
|
128
128
|
#
|
129
129
|
# Sample Query:
|
130
130
|
# `(LOWER(driving_license)="class \"a\"" OR EMPTY(driving_license)) AND
|
@@ -180,16 +180,20 @@ module Google
|
|
180
180
|
# The address name, such as "Mountain View" or "Bay Area".
|
181
181
|
# @!attribute [rw] region_code
|
182
182
|
# @return [::String]
|
183
|
-
# CLDR region code of the country/region
|
184
|
-
# to address ambiguity of the user-input location, for example, "Liverpool"
|
185
|
-
# against "Liverpool, NY, US" or "Liverpool, UK".
|
183
|
+
# CLDR region code of the country/region. This field may be used in two ways:
|
186
184
|
#
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
185
|
+
# 1) If telecommute preference is not set, this field is used address
|
186
|
+
# ambiguity of the user-input address. For example, "Liverpool" may refer to
|
187
|
+
# "Liverpool, NY, US" or "Liverpool, UK". This region code biases the
|
188
|
+
# address resolution toward a specific country or territory. If this field is
|
189
|
+
# not set, address resolution is biased toward the United States by default.
|
190
|
+
#
|
191
|
+
# 2) If telecommute preference is set to TELECOMMUTE_ALLOWED, the
|
192
|
+
# telecommute location filter will be limited to the region specified in this
|
193
|
+
# field. If this field is not set, the telecommute job locations will not be
|
190
194
|
#
|
191
195
|
# See
|
192
|
-
# https://
|
196
|
+
# https://unicode-org.github.io/cldr-staging/charts/latest/supplemental/territory_information.html
|
193
197
|
# for details. Example: "CH" for Switzerland.
|
194
198
|
# @!attribute [rw] lat_lng
|
195
199
|
# @return [::Google::Type::LatLng]
|
@@ -88,6 +88,15 @@ module Google
|
|
88
88
|
# suggested to group the locations that close to each other in the same job
|
89
89
|
# for better search experience.
|
90
90
|
#
|
91
|
+
# Jobs with multiple addresses must have their addresses with the same
|
92
|
+
# [LocationType][] to allow location filtering to work properly. (For
|
93
|
+
# example, a Job with addresses "1600 Amphitheatre Parkway, Mountain View,
|
94
|
+
# CA, USA" and "London, UK" may not have location filters applied correctly
|
95
|
+
# at search time since the first is a [LocationType.STREET_ADDRESS][] and the
|
96
|
+
# second is a [LocationType.LOCALITY][].) If a job needs to have multiple
|
97
|
+
# addresses, it is suggested to split it into multiple jobs with same
|
98
|
+
# LocationTypes.
|
99
|
+
#
|
91
100
|
# The maximum number of allowed characters is 500.
|
92
101
|
# @!attribute [rw] application_info
|
93
102
|
# @return [::Google::Cloud::Talent::V4::Job::ApplicationInfo]
|
@@ -105,7 +114,7 @@ module Google
|
|
105
114
|
# attributes that are not covered by the provided structured fields.
|
106
115
|
#
|
107
116
|
# The keys of the map are strings up to 64 bytes and must match the
|
108
|
-
# pattern: [a-zA-Z][a-zA-Z0-9_]
|
117
|
+
# pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example, key0LikeThis or
|
109
118
|
# KEY_1_LIKE_THIS.
|
110
119
|
#
|
111
120
|
# At most 100 filterable and at most 100 unfilterable keys are supported.
|