google-cloud-talent-v4 0.6.1 → 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/company_service/client.rb +81 -0
- data/lib/google/cloud/talent/v4/completion/client.rb +15 -0
- data/lib/google/cloud/talent/v4/event_service/client.rb +15 -0
- data/lib/google/cloud/talent/v4/job_service/client.rb +177 -0
- data/lib/google/cloud/talent/v4/job_service/operations.rb +95 -0
- data/lib/google/cloud/talent/v4/tenant_service/client.rb +81 -0
- data/lib/google/cloud/talent/v4/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad781f9242cf907508322470bd01224dadc853650c09dc0880029e0bf9f8662d
|
4
|
+
data.tar.gz: 077ca4b8c031806e72e2398aaa80fb4065b89a0ea515edba315f064795d26310
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48bf7661ad5a63432c67ae80d1160a97e7f6773688312d8f7aacf8b6f5fc797747feb14e1ab1dc82838e3e3c43c5412302934f55320d06d51d23351ec054b402
|
7
|
+
data.tar.gz: 295d2ce74ea0354c87ac1ea06ec31472fb66fb3bcd0968bac610bd416a6ca6ef501b9a5017ba6534730a9fd9ae945d2932602f75bdd95b9cdd9b671efbc414f3
|
@@ -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::CompanyService::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Talent::V4::CreateCompanyRequest.new
|
208
|
+
#
|
209
|
+
# # Call the create_company method.
|
210
|
+
# result = client.create_company request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Company.
|
213
|
+
# p result
|
214
|
+
#
|
200
215
|
def create_company request, options = nil
|
201
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
202
217
|
|
@@ -271,6 +286,21 @@ module Google
|
|
271
286
|
#
|
272
287
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
273
288
|
#
|
289
|
+
# @example Basic example
|
290
|
+
# require "google/cloud/talent/v4"
|
291
|
+
#
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
293
|
+
# client = Google::Cloud::Talent::V4::CompanyService::Client.new
|
294
|
+
#
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
296
|
+
# request = Google::Cloud::Talent::V4::GetCompanyRequest.new
|
297
|
+
#
|
298
|
+
# # Call the get_company method.
|
299
|
+
# result = client.get_company request
|
300
|
+
#
|
301
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Company.
|
302
|
+
# p result
|
303
|
+
#
|
274
304
|
def get_company request, options = nil
|
275
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
306
|
|
@@ -349,6 +379,21 @@ module Google
|
|
349
379
|
#
|
350
380
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
351
381
|
#
|
382
|
+
# @example Basic example
|
383
|
+
# require "google/cloud/talent/v4"
|
384
|
+
#
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
386
|
+
# client = Google::Cloud::Talent::V4::CompanyService::Client.new
|
387
|
+
#
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
389
|
+
# request = Google::Cloud::Talent::V4::UpdateCompanyRequest.new
|
390
|
+
#
|
391
|
+
# # Call the update_company method.
|
392
|
+
# result = client.update_company request
|
393
|
+
#
|
394
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Company.
|
395
|
+
# p result
|
396
|
+
#
|
352
397
|
def update_company request, options = nil
|
353
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
354
399
|
|
@@ -424,6 +469,21 @@ module Google
|
|
424
469
|
#
|
425
470
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
426
471
|
#
|
472
|
+
# @example Basic example
|
473
|
+
# require "google/cloud/talent/v4"
|
474
|
+
#
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
476
|
+
# client = Google::Cloud::Talent::V4::CompanyService::Client.new
|
477
|
+
#
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
479
|
+
# request = Google::Cloud::Talent::V4::DeleteCompanyRequest.new
|
480
|
+
#
|
481
|
+
# # Call the delete_company method.
|
482
|
+
# result = client.delete_company request
|
483
|
+
#
|
484
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
485
|
+
# p result
|
486
|
+
#
|
427
487
|
def delete_company request, options = nil
|
428
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
429
489
|
|
@@ -509,6 +569,27 @@ module Google
|
|
509
569
|
#
|
510
570
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
511
571
|
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/talent/v4"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::Talent::V4::CompanyService::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::Talent::V4::ListCompaniesRequest.new
|
580
|
+
#
|
581
|
+
# # Call the list_companies method.
|
582
|
+
# result = client.list_companies request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
585
|
+
# # iterate over all elements by calling #each, and the enumerable
|
586
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
587
|
+
# # methods are also available for managing paging directly.
|
588
|
+
# result.each do |response|
|
589
|
+
# # Each element is of type ::Google::Cloud::Talent::V4::Company.
|
590
|
+
# p response
|
591
|
+
# end
|
592
|
+
#
|
512
593
|
def list_companies request, options = nil
|
513
594
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
514
595
|
|
@@ -207,6 +207,21 @@ module Google
|
|
207
207
|
#
|
208
208
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
209
209
|
#
|
210
|
+
# @example Basic example
|
211
|
+
# require "google/cloud/talent/v4"
|
212
|
+
#
|
213
|
+
# # Create a client object. The client can be reused for multiple calls.
|
214
|
+
# client = Google::Cloud::Talent::V4::Completion::Client.new
|
215
|
+
#
|
216
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
217
|
+
# request = Google::Cloud::Talent::V4::CompleteQueryRequest.new
|
218
|
+
#
|
219
|
+
# # Call the complete_query method.
|
220
|
+
# result = client.complete_query request
|
221
|
+
#
|
222
|
+
# # The returned object is of type Google::Cloud::Talent::V4::CompleteQueryResponse.
|
223
|
+
# p result
|
224
|
+
#
|
210
225
|
def complete_query request, options = nil
|
211
226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
227
|
|
@@ -187,6 +187,21 @@ module Google
|
|
187
187
|
#
|
188
188
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
189
189
|
#
|
190
|
+
# @example Basic example
|
191
|
+
# require "google/cloud/talent/v4"
|
192
|
+
#
|
193
|
+
# # Create a client object. The client can be reused for multiple calls.
|
194
|
+
# client = Google::Cloud::Talent::V4::EventService::Client.new
|
195
|
+
#
|
196
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
197
|
+
# request = Google::Cloud::Talent::V4::CreateClientEventRequest.new
|
198
|
+
#
|
199
|
+
# # Call the create_client_event method.
|
200
|
+
# result = client.create_client_event request
|
201
|
+
#
|
202
|
+
# # The returned object is of type Google::Cloud::Talent::V4::ClientEvent.
|
203
|
+
# p result
|
204
|
+
#
|
190
205
|
def create_client_event request, options = nil
|
191
206
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
207
|
|
@@ -222,6 +222,21 @@ module Google
|
|
222
222
|
#
|
223
223
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
224
224
|
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/cloud/talent/v4"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Cloud::Talent::V4::CreateJobRequest.new
|
233
|
+
#
|
234
|
+
# # Call the create_job method.
|
235
|
+
# result = client.create_job request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Job.
|
238
|
+
# p result
|
239
|
+
#
|
225
240
|
def create_job request, options = nil
|
226
241
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
227
242
|
|
@@ -298,6 +313,28 @@ module Google
|
|
298
313
|
#
|
299
314
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
300
315
|
#
|
316
|
+
# @example Basic example
|
317
|
+
# require "google/cloud/talent/v4"
|
318
|
+
#
|
319
|
+
# # Create a client object. The client can be reused for multiple calls.
|
320
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
321
|
+
#
|
322
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
323
|
+
# request = Google::Cloud::Talent::V4::BatchCreateJobsRequest.new
|
324
|
+
#
|
325
|
+
# # Call the batch_create_jobs method.
|
326
|
+
# result = client.batch_create_jobs request
|
327
|
+
#
|
328
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
329
|
+
# # object to check the status of an operation, cancel it, or wait
|
330
|
+
# # for results. Here is how to block until completion:
|
331
|
+
# result.wait_until_done! timeout: 60
|
332
|
+
# if result.response?
|
333
|
+
# p result.response
|
334
|
+
# else
|
335
|
+
# puts "Error!"
|
336
|
+
# end
|
337
|
+
#
|
301
338
|
def batch_create_jobs request, options = nil
|
302
339
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
303
340
|
|
@@ -374,6 +411,21 @@ module Google
|
|
374
411
|
#
|
375
412
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
376
413
|
#
|
414
|
+
# @example Basic example
|
415
|
+
# require "google/cloud/talent/v4"
|
416
|
+
#
|
417
|
+
# # Create a client object. The client can be reused for multiple calls.
|
418
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
419
|
+
#
|
420
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
421
|
+
# request = Google::Cloud::Talent::V4::GetJobRequest.new
|
422
|
+
#
|
423
|
+
# # Call the get_job method.
|
424
|
+
# result = client.get_job request
|
425
|
+
#
|
426
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Job.
|
427
|
+
# p result
|
428
|
+
#
|
377
429
|
def get_job request, options = nil
|
378
430
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
379
431
|
|
@@ -455,6 +507,21 @@ module Google
|
|
455
507
|
#
|
456
508
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
457
509
|
#
|
510
|
+
# @example Basic example
|
511
|
+
# require "google/cloud/talent/v4"
|
512
|
+
#
|
513
|
+
# # Create a client object. The client can be reused for multiple calls.
|
514
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
515
|
+
#
|
516
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
517
|
+
# request = Google::Cloud::Talent::V4::UpdateJobRequest.new
|
518
|
+
#
|
519
|
+
# # Call the update_job method.
|
520
|
+
# result = client.update_job request
|
521
|
+
#
|
522
|
+
# # The returned object is of type Google::Cloud::Talent::V4::Job.
|
523
|
+
# p result
|
524
|
+
#
|
458
525
|
def update_job request, options = nil
|
459
526
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
460
527
|
|
@@ -546,6 +613,28 @@ module Google
|
|
546
613
|
#
|
547
614
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
548
615
|
#
|
616
|
+
# @example Basic example
|
617
|
+
# require "google/cloud/talent/v4"
|
618
|
+
#
|
619
|
+
# # Create a client object. The client can be reused for multiple calls.
|
620
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
621
|
+
#
|
622
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
623
|
+
# request = Google::Cloud::Talent::V4::BatchUpdateJobsRequest.new
|
624
|
+
#
|
625
|
+
# # Call the batch_update_jobs method.
|
626
|
+
# result = client.batch_update_jobs request
|
627
|
+
#
|
628
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
629
|
+
# # object to check the status of an operation, cancel it, or wait
|
630
|
+
# # for results. Here is how to block until completion:
|
631
|
+
# result.wait_until_done! timeout: 60
|
632
|
+
# if result.response?
|
633
|
+
# p result.response
|
634
|
+
# else
|
635
|
+
# puts "Error!"
|
636
|
+
# end
|
637
|
+
#
|
549
638
|
def batch_update_jobs request, options = nil
|
550
639
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
640
|
|
@@ -624,6 +713,21 @@ module Google
|
|
624
713
|
#
|
625
714
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
626
715
|
#
|
716
|
+
# @example Basic example
|
717
|
+
# require "google/cloud/talent/v4"
|
718
|
+
#
|
719
|
+
# # Create a client object. The client can be reused for multiple calls.
|
720
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
721
|
+
#
|
722
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
723
|
+
# request = Google::Cloud::Talent::V4::DeleteJobRequest.new
|
724
|
+
#
|
725
|
+
# # Call the delete_job method.
|
726
|
+
# result = client.delete_job request
|
727
|
+
#
|
728
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
729
|
+
# p result
|
730
|
+
#
|
627
731
|
def delete_job request, options = nil
|
628
732
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
629
733
|
|
@@ -706,6 +810,28 @@ module Google
|
|
706
810
|
#
|
707
811
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
708
812
|
#
|
813
|
+
# @example Basic example
|
814
|
+
# require "google/cloud/talent/v4"
|
815
|
+
#
|
816
|
+
# # Create a client object. The client can be reused for multiple calls.
|
817
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
818
|
+
#
|
819
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
820
|
+
# request = Google::Cloud::Talent::V4::BatchDeleteJobsRequest.new
|
821
|
+
#
|
822
|
+
# # Call the batch_delete_jobs method.
|
823
|
+
# result = client.batch_delete_jobs request
|
824
|
+
#
|
825
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
826
|
+
# # object to check the status of an operation, cancel it, or wait
|
827
|
+
# # for results. Here is how to block until completion:
|
828
|
+
# result.wait_until_done! timeout: 60
|
829
|
+
# if result.response?
|
830
|
+
# p result.response
|
831
|
+
# else
|
832
|
+
# puts "Error!"
|
833
|
+
# end
|
834
|
+
#
|
709
835
|
def batch_delete_jobs request, options = nil
|
710
836
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
711
837
|
|
@@ -817,6 +943,27 @@ module Google
|
|
817
943
|
#
|
818
944
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
819
945
|
#
|
946
|
+
# @example Basic example
|
947
|
+
# require "google/cloud/talent/v4"
|
948
|
+
#
|
949
|
+
# # Create a client object. The client can be reused for multiple calls.
|
950
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
951
|
+
#
|
952
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
953
|
+
# request = Google::Cloud::Talent::V4::ListJobsRequest.new
|
954
|
+
#
|
955
|
+
# # Call the list_jobs method.
|
956
|
+
# result = client.list_jobs request
|
957
|
+
#
|
958
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
959
|
+
# # iterate over all elements by calling #each, and the enumerable
|
960
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
961
|
+
# # methods are also available for managing paging directly.
|
962
|
+
# result.each do |response|
|
963
|
+
# # Each element is of type ::Google::Cloud::Talent::V4::Job.
|
964
|
+
# p response
|
965
|
+
# end
|
966
|
+
#
|
820
967
|
def list_jobs request, options = nil
|
821
968
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
822
969
|
|
@@ -1126,6 +1273,21 @@ module Google
|
|
1126
1273
|
#
|
1127
1274
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1128
1275
|
#
|
1276
|
+
# @example Basic example
|
1277
|
+
# require "google/cloud/talent/v4"
|
1278
|
+
#
|
1279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1280
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
1281
|
+
#
|
1282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1283
|
+
# request = Google::Cloud::Talent::V4::SearchJobsRequest.new
|
1284
|
+
#
|
1285
|
+
# # Call the search_jobs method.
|
1286
|
+
# result = client.search_jobs request
|
1287
|
+
#
|
1288
|
+
# # The returned object is of type Google::Cloud::Talent::V4::SearchJobsResponse.
|
1289
|
+
# p result
|
1290
|
+
#
|
1129
1291
|
def search_jobs request, options = nil
|
1130
1292
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1131
1293
|
|
@@ -1439,6 +1601,21 @@ module Google
|
|
1439
1601
|
#
|
1440
1602
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1441
1603
|
#
|
1604
|
+
# @example Basic example
|
1605
|
+
# require "google/cloud/talent/v4"
|
1606
|
+
#
|
1607
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1608
|
+
# client = Google::Cloud::Talent::V4::JobService::Client.new
|
1609
|
+
#
|
1610
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1611
|
+
# request = Google::Cloud::Talent::V4::SearchJobsRequest.new
|
1612
|
+
#
|
1613
|
+
# # Call the search_jobs_for_alert method.
|
1614
|
+
# result = client.search_jobs_for_alert request
|
1615
|
+
#
|
1616
|
+
# # The returned object is of type Google::Cloud::Talent::V4::SearchJobsResponse.
|
1617
|
+
# p result
|
1618
|
+
#
|
1442
1619
|
def search_jobs_for_alert request, options = nil
|
1443
1620
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1444
1621
|
|
@@ -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
|
|
@@ -217,6 +238,28 @@ module Google
|
|
217
238
|
#
|
218
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
219
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
|
+
#
|
220
263
|
def get_operation request, options = nil
|
221
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
222
265
|
|
@@ -291,6 +334,21 @@ module Google
|
|
291
334
|
#
|
292
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
293
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
|
+
#
|
294
352
|
def delete_operation request, options = nil
|
295
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
296
354
|
|
@@ -370,6 +428,21 @@ module Google
|
|
370
428
|
#
|
371
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
372
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
|
+
#
|
373
446
|
def cancel_operation request, options = nil
|
374
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
375
448
|
|
@@ -452,6 +525,28 @@ module Google
|
|
452
525
|
#
|
453
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
454
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
|
+
#
|
455
550
|
def wait_operation request, options = nil
|
456
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
457
552
|
|
@@ -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
|
|
@@ -270,6 +285,21 @@ module Google
|
|
270
285
|
#
|
271
286
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
272
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
|
+
#
|
273
303
|
def get_tenant request, options = nil
|
274
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
275
305
|
|
@@ -348,6 +378,21 @@ module Google
|
|
348
378
|
#
|
349
379
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
350
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
|
+
#
|
351
396
|
def update_tenant request, options = nil
|
352
397
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
353
398
|
|
@@ -421,6 +466,21 @@ module Google
|
|
421
466
|
#
|
422
467
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
423
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
|
+
#
|
424
484
|
def delete_tenant request, options = nil
|
425
485
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
426
486
|
|
@@ -499,6 +559,27 @@ module Google
|
|
499
559
|
#
|
500
560
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
501
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
|
+
#
|
502
583
|
def list_tenants request, options = nil
|
503
584
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
504
585
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-talent-v4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|