google-cloud-talent-v4beta1 0.8.1 → 0.9.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b87a5a2101287c50027258d1c1e27402e48beb18733fc5da82cd49f7ba1783e7
4
- data.tar.gz: fb044de0aeeaba674c3eaccaea748fc0f737f9fbd77988ac90e2391668464a55
3
+ metadata.gz: fff4cd81ad861ca43569f28ee60c260312a51f5786a4d75b433f75f48a0a445a
4
+ data.tar.gz: 7140bf03eb0509259803b817c6aa5f5c3333fb9db4d1658f76dbea1a95bffe38
5
5
  SHA512:
6
- metadata.gz: 64bc85f5e071c2193a16e767b028358e62ce07886251e89846a4cd0a4b1f4db1756d7e523657f2c8974ee6c97c498812d7a58af55d0693b522ed30aa2e9e1adb
7
- data.tar.gz: 495d95557d8181473eb5d683fa37b4be608e62c21e9d6a2537cae5e834e67161b531d7a13949cc882b0526c540002d10940a4e91a9b909f4677379540e91ab23
6
+ metadata.gz: c3a1360276bdfaf4d05434f75cfa5ad883fa8efcfb2f4170d8911cc49e4b526c8debb0c50e9113f9edceae68e2b4d0d8bfffa736e10df6acc10bef3470d86820
7
+ data.tar.gz: 51318bdb23b043f0b4f0c0141aadc053e9da745dec31f84487d602100b3508f4bec701a7b7a5f1716e784a038f9c416be2636b2c81b48e50373cfb2e3ecdc88d
@@ -157,7 +157,8 @@ module Google
157
157
  credentials: credentials,
158
158
  endpoint: @config.endpoint,
159
159
  channel_args: @config.channel_args,
160
- interceptors: @config.interceptors
160
+ interceptors: @config.interceptors,
161
+ channel_pool_config: @config.channel_pool
161
162
  )
162
163
  end
163
164
 
@@ -765,6 +766,14 @@ module Google
765
766
  end
766
767
  end
767
768
 
769
+ ##
770
+ # Configuration for the channel pool
771
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
772
+ #
773
+ def channel_pool
774
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
775
+ end
776
+
768
777
  ##
769
778
  # Configuration RPC class for the CompanyService API.
770
779
  #
@@ -187,6 +187,22 @@ module Google
187
187
  # @return [::Google::Cloud::Talent::V4beta1::Company]
188
188
  #
189
189
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
190
+ #
191
+ # @example Basic example
192
+ # require "google/cloud/talent/v4beta1"
193
+ #
194
+ # # Create a client object. The client can be reused for multiple calls.
195
+ # client = Google::Cloud::Talent::V4beta1::CompanyService::Rest::Client.new
196
+ #
197
+ # # Create a request. To set request fields, pass in keyword arguments.
198
+ # request = Google::Cloud::Talent::V4beta1::CreateCompanyRequest.new
199
+ #
200
+ # # Call the create_company method.
201
+ # result = client.create_company request
202
+ #
203
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Company.
204
+ # p result
205
+ #
190
206
  def create_company request, options = nil
191
207
  raise ::ArgumentError, "request must be provided" if request.nil?
192
208
 
@@ -256,6 +272,22 @@ module Google
256
272
  # @return [::Google::Cloud::Talent::V4beta1::Company]
257
273
  #
258
274
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
275
+ #
276
+ # @example Basic example
277
+ # require "google/cloud/talent/v4beta1"
278
+ #
279
+ # # Create a client object. The client can be reused for multiple calls.
280
+ # client = Google::Cloud::Talent::V4beta1::CompanyService::Rest::Client.new
281
+ #
282
+ # # Create a request. To set request fields, pass in keyword arguments.
283
+ # request = Google::Cloud::Talent::V4beta1::GetCompanyRequest.new
284
+ #
285
+ # # Call the get_company method.
286
+ # result = client.get_company request
287
+ #
288
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Company.
289
+ # p result
290
+ #
259
291
  def get_company request, options = nil
260
292
  raise ::ArgumentError, "request must be provided" if request.nil?
261
293
 
@@ -331,6 +363,22 @@ module Google
331
363
  # @return [::Google::Cloud::Talent::V4beta1::Company]
332
364
  #
333
365
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
366
+ #
367
+ # @example Basic example
368
+ # require "google/cloud/talent/v4beta1"
369
+ #
370
+ # # Create a client object. The client can be reused for multiple calls.
371
+ # client = Google::Cloud::Talent::V4beta1::CompanyService::Rest::Client.new
372
+ #
373
+ # # Create a request. To set request fields, pass in keyword arguments.
374
+ # request = Google::Cloud::Talent::V4beta1::UpdateCompanyRequest.new
375
+ #
376
+ # # Call the update_company method.
377
+ # result = client.update_company request
378
+ #
379
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Company.
380
+ # p result
381
+ #
334
382
  def update_company request, options = nil
335
383
  raise ::ArgumentError, "request must be provided" if request.nil?
336
384
 
@@ -401,6 +449,22 @@ module Google
401
449
  # @return [::Google::Protobuf::Empty]
402
450
  #
403
451
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
452
+ #
453
+ # @example Basic example
454
+ # require "google/cloud/talent/v4beta1"
455
+ #
456
+ # # Create a client object. The client can be reused for multiple calls.
457
+ # client = Google::Cloud::Talent::V4beta1::CompanyService::Rest::Client.new
458
+ #
459
+ # # Create a request. To set request fields, pass in keyword arguments.
460
+ # request = Google::Cloud::Talent::V4beta1::DeleteCompanyRequest.new
461
+ #
462
+ # # Call the delete_company method.
463
+ # result = client.delete_company request
464
+ #
465
+ # # The returned object is of type Google::Protobuf::Empty.
466
+ # p result
467
+ #
404
468
  def delete_company request, options = nil
405
469
  raise ::ArgumentError, "request must be provided" if request.nil?
406
470
 
@@ -482,6 +546,26 @@ module Google
482
546
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Company>]
483
547
  #
484
548
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
549
+ #
550
+ # @example Basic example
551
+ # require "google/cloud/talent/v4beta1"
552
+ #
553
+ # # Create a client object. The client can be reused for multiple calls.
554
+ # client = Google::Cloud::Talent::V4beta1::CompanyService::Rest::Client.new
555
+ #
556
+ # # Create a request. To set request fields, pass in keyword arguments.
557
+ # request = Google::Cloud::Talent::V4beta1::ListCompaniesRequest.new
558
+ #
559
+ # # Call the list_companies method.
560
+ # result = client.list_companies request
561
+ #
562
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
563
+ # # over elements, and API calls will be issued to fetch pages as needed.
564
+ # result.each do |item|
565
+ # # Each element is of type ::Google::Cloud::Talent::V4beta1::Company.
566
+ # p item
567
+ # end
568
+ #
485
569
  def list_companies request, options = nil
486
570
  raise ::ArgumentError, "request must be provided" if request.nil?
487
571
 
@@ -143,7 +143,8 @@ module Google
143
143
  credentials: credentials,
144
144
  endpoint: @config.endpoint,
145
145
  channel_args: @config.channel_args,
146
- interceptors: @config.interceptors
146
+ interceptors: @config.interceptors,
147
+ channel_pool_config: @config.channel_pool
147
148
  )
148
149
  end
149
150
 
@@ -390,6 +391,14 @@ module Google
390
391
  end
391
392
  end
392
393
 
394
+ ##
395
+ # Configuration for the channel pool
396
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
397
+ #
398
+ def channel_pool
399
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
400
+ end
401
+
393
402
  ##
394
403
  # Configuration RPC class for the Completion API.
395
404
  #
@@ -204,6 +204,22 @@ module Google
204
204
  # @return [::Google::Cloud::Talent::V4beta1::CompleteQueryResponse]
205
205
  #
206
206
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
207
+ #
208
+ # @example Basic example
209
+ # require "google/cloud/talent/v4beta1"
210
+ #
211
+ # # Create a client object. The client can be reused for multiple calls.
212
+ # client = Google::Cloud::Talent::V4beta1::Completion::Rest::Client.new
213
+ #
214
+ # # Create a request. To set request fields, pass in keyword arguments.
215
+ # request = Google::Cloud::Talent::V4beta1::CompleteQueryRequest.new
216
+ #
217
+ # # Call the complete_query method.
218
+ # result = client.complete_query request
219
+ #
220
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::CompleteQueryResponse.
221
+ # p result
222
+ #
207
223
  def complete_query request, options = nil
208
224
  raise ::ArgumentError, "request must be provided" if request.nil?
209
225
 
@@ -140,7 +140,8 @@ module Google
140
140
  credentials: credentials,
141
141
  endpoint: @config.endpoint,
142
142
  channel_args: @config.channel_args,
143
- interceptors: @config.interceptors
143
+ interceptors: @config.interceptors,
144
+ channel_pool_config: @config.channel_pool
144
145
  )
145
146
  end
146
147
 
@@ -363,6 +364,14 @@ module Google
363
364
  end
364
365
  end
365
366
 
367
+ ##
368
+ # Configuration for the channel pool
369
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
370
+ #
371
+ def channel_pool
372
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
373
+ end
374
+
366
375
  ##
367
376
  # Configuration RPC class for the EventService API.
368
377
  #
@@ -177,6 +177,22 @@ module Google
177
177
  # @return [::Google::Cloud::Talent::V4beta1::ClientEvent]
178
178
  #
179
179
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
180
+ #
181
+ # @example Basic example
182
+ # require "google/cloud/talent/v4beta1"
183
+ #
184
+ # # Create a client object. The client can be reused for multiple calls.
185
+ # client = Google::Cloud::Talent::V4beta1::EventService::Rest::Client.new
186
+ #
187
+ # # Create a request. To set request fields, pass in keyword arguments.
188
+ # request = Google::Cloud::Talent::V4beta1::CreateClientEventRequest.new
189
+ #
190
+ # # Call the create_client_event method.
191
+ # result = client.create_client_event request
192
+ #
193
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::ClientEvent.
194
+ # p result
195
+ #
180
196
  def create_client_event request, options = nil
181
197
  raise ::ArgumentError, "request must be provided" if request.nil?
182
198
 
@@ -173,7 +173,8 @@ module Google
173
173
  credentials: credentials,
174
174
  endpoint: @config.endpoint,
175
175
  channel_args: @config.channel_args,
176
- interceptors: @config.interceptors
176
+ interceptors: @config.interceptors,
177
+ channel_pool_config: @config.channel_pool
177
178
  )
178
179
  end
179
180
 
@@ -1878,6 +1879,14 @@ module Google
1878
1879
  end
1879
1880
  end
1880
1881
 
1882
+ ##
1883
+ # Configuration for the channel pool
1884
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1885
+ #
1886
+ def channel_pool
1887
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1888
+ end
1889
+
1881
1890
  ##
1882
1891
  # Configuration RPC class for the JobService API.
1883
1892
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -701,6 +702,14 @@ module Google
701
702
  end
702
703
  end
703
704
 
705
+ ##
706
+ # Configuration for the channel pool
707
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
708
+ #
709
+ def channel_pool
710
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
711
+ end
712
+
704
713
  ##
705
714
  # Configuration RPC class for the Operations API.
706
715
  #
@@ -213,6 +213,22 @@ module Google
213
213
  # @return [::Google::Cloud::Talent::V4beta1::Job]
214
214
  #
215
215
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
216
+ #
217
+ # @example Basic example
218
+ # require "google/cloud/talent/v4beta1"
219
+ #
220
+ # # Create a client object. The client can be reused for multiple calls.
221
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
222
+ #
223
+ # # Create a request. To set request fields, pass in keyword arguments.
224
+ # request = Google::Cloud::Talent::V4beta1::CreateJobRequest.new
225
+ #
226
+ # # Call the create_job method.
227
+ # result = client.create_job request
228
+ #
229
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
230
+ # p result
231
+ #
216
232
  def create_job request, options = nil
217
233
  raise ::ArgumentError, "request must be provided" if request.nil?
218
234
 
@@ -281,6 +297,29 @@ module Google
281
297
  # @return [::Gapic::Operation]
282
298
  #
283
299
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
300
+ #
301
+ # @example Basic example
302
+ # require "google/cloud/talent/v4beta1"
303
+ #
304
+ # # Create a client object. The client can be reused for multiple calls.
305
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
306
+ #
307
+ # # Create a request. To set request fields, pass in keyword arguments.
308
+ # request = Google::Cloud::Talent::V4beta1::BatchCreateJobsRequest.new
309
+ #
310
+ # # Call the batch_create_jobs method.
311
+ # result = client.batch_create_jobs request
312
+ #
313
+ # # The returned object is of type Gapic::Operation. You can use it to
314
+ # # check the status of an operation, cancel it, or wait for results.
315
+ # # Here is how to wait for a response.
316
+ # result.wait_until_done! timeout: 60
317
+ # if result.response?
318
+ # p result.response
319
+ # else
320
+ # puts "No response received."
321
+ # end
322
+ #
284
323
  def batch_create_jobs request, options = nil
285
324
  raise ::ArgumentError, "request must be provided" if request.nil?
286
325
 
@@ -352,6 +391,22 @@ module Google
352
391
  # @return [::Google::Cloud::Talent::V4beta1::Job]
353
392
  #
354
393
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
394
+ #
395
+ # @example Basic example
396
+ # require "google/cloud/talent/v4beta1"
397
+ #
398
+ # # Create a client object. The client can be reused for multiple calls.
399
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
400
+ #
401
+ # # Create a request. To set request fields, pass in keyword arguments.
402
+ # request = Google::Cloud::Talent::V4beta1::GetJobRequest.new
403
+ #
404
+ # # Call the get_job method.
405
+ # result = client.get_job request
406
+ #
407
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
408
+ # p result
409
+ #
355
410
  def get_job request, options = nil
356
411
  raise ::ArgumentError, "request must be provided" if request.nil?
357
412
 
@@ -427,6 +482,22 @@ module Google
427
482
  # @return [::Google::Cloud::Talent::V4beta1::Job]
428
483
  #
429
484
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
485
+ #
486
+ # @example Basic example
487
+ # require "google/cloud/talent/v4beta1"
488
+ #
489
+ # # Create a client object. The client can be reused for multiple calls.
490
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
491
+ #
492
+ # # Create a request. To set request fields, pass in keyword arguments.
493
+ # request = Google::Cloud::Talent::V4beta1::UpdateJobRequest.new
494
+ #
495
+ # # Call the update_job method.
496
+ # result = client.update_job request
497
+ #
498
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Job.
499
+ # p result
500
+ #
430
501
  def update_job request, options = nil
431
502
  raise ::ArgumentError, "request must be provided" if request.nil?
432
503
 
@@ -515,6 +586,29 @@ module Google
515
586
  # @return [::Gapic::Operation]
516
587
  #
517
588
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
589
+ #
590
+ # @example Basic example
591
+ # require "google/cloud/talent/v4beta1"
592
+ #
593
+ # # Create a client object. The client can be reused for multiple calls.
594
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
595
+ #
596
+ # # Create a request. To set request fields, pass in keyword arguments.
597
+ # request = Google::Cloud::Talent::V4beta1::BatchUpdateJobsRequest.new
598
+ #
599
+ # # Call the batch_update_jobs method.
600
+ # result = client.batch_update_jobs request
601
+ #
602
+ # # The returned object is of type Gapic::Operation. You can use it to
603
+ # # check the status of an operation, cancel it, or wait for results.
604
+ # # Here is how to wait for a response.
605
+ # result.wait_until_done! timeout: 60
606
+ # if result.response?
607
+ # p result.response
608
+ # else
609
+ # puts "No response received."
610
+ # end
611
+ #
518
612
  def batch_update_jobs request, options = nil
519
613
  raise ::ArgumentError, "request must be provided" if request.nil?
520
614
 
@@ -588,6 +682,22 @@ module Google
588
682
  # @return [::Google::Protobuf::Empty]
589
683
  #
590
684
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
685
+ #
686
+ # @example Basic example
687
+ # require "google/cloud/talent/v4beta1"
688
+ #
689
+ # # Create a client object. The client can be reused for multiple calls.
690
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
691
+ #
692
+ # # Create a request. To set request fields, pass in keyword arguments.
693
+ # request = Google::Cloud::Talent::V4beta1::DeleteJobRequest.new
694
+ #
695
+ # # Call the delete_job method.
696
+ # result = client.delete_job request
697
+ #
698
+ # # The returned object is of type Google::Protobuf::Empty.
699
+ # p result
700
+ #
591
701
  def delete_job request, options = nil
592
702
  raise ::ArgumentError, "request must be provided" if request.nil?
593
703
 
@@ -666,6 +776,22 @@ module Google
666
776
  # @return [::Google::Protobuf::Empty]
667
777
  #
668
778
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
779
+ #
780
+ # @example Basic example
781
+ # require "google/cloud/talent/v4beta1"
782
+ #
783
+ # # Create a client object. The client can be reused for multiple calls.
784
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
785
+ #
786
+ # # Create a request. To set request fields, pass in keyword arguments.
787
+ # request = Google::Cloud::Talent::V4beta1::BatchDeleteJobsRequest.new
788
+ #
789
+ # # Call the batch_delete_jobs method.
790
+ # result = client.batch_delete_jobs request
791
+ #
792
+ # # The returned object is of type Google::Protobuf::Empty.
793
+ # p result
794
+ #
669
795
  def batch_delete_jobs request, options = nil
670
796
  raise ::ArgumentError, "request must be provided" if request.nil?
671
797
 
@@ -773,6 +899,26 @@ module Google
773
899
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Job>]
774
900
  #
775
901
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
902
+ #
903
+ # @example Basic example
904
+ # require "google/cloud/talent/v4beta1"
905
+ #
906
+ # # Create a client object. The client can be reused for multiple calls.
907
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
908
+ #
909
+ # # Create a request. To set request fields, pass in keyword arguments.
910
+ # request = Google::Cloud::Talent::V4beta1::ListJobsRequest.new
911
+ #
912
+ # # Call the list_jobs method.
913
+ # result = client.list_jobs request
914
+ #
915
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
916
+ # # over elements, and API calls will be issued to fetch pages as needed.
917
+ # result.each do |item|
918
+ # # Each element is of type ::Google::Cloud::Talent::V4beta1::Job.
919
+ # p item
920
+ # end
921
+ #
776
922
  def list_jobs request, options = nil
777
923
  raise ::ArgumentError, "request must be provided" if request.nil?
778
924
 
@@ -1118,6 +1264,22 @@ module Google
1118
1264
  # @return [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1119
1265
  #
1120
1266
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1267
+ #
1268
+ # @example Basic example
1269
+ # require "google/cloud/talent/v4beta1"
1270
+ #
1271
+ # # Create a client object. The client can be reused for multiple calls.
1272
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
1273
+ #
1274
+ # # Create a request. To set request fields, pass in keyword arguments.
1275
+ # request = Google::Cloud::Talent::V4beta1::SearchJobsRequest.new
1276
+ #
1277
+ # # Call the search_jobs method.
1278
+ # result = client.search_jobs request
1279
+ #
1280
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::SearchJobsResponse.
1281
+ # p result
1282
+ #
1121
1283
  def search_jobs request, options = nil
1122
1284
  raise ::ArgumentError, "request must be provided" if request.nil?
1123
1285
 
@@ -1467,6 +1629,22 @@ module Google
1467
1629
  # @return [::Google::Cloud::Talent::V4beta1::SearchJobsResponse]
1468
1630
  #
1469
1631
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1632
+ #
1633
+ # @example Basic example
1634
+ # require "google/cloud/talent/v4beta1"
1635
+ #
1636
+ # # Create a client object. The client can be reused for multiple calls.
1637
+ # client = Google::Cloud::Talent::V4beta1::JobService::Rest::Client.new
1638
+ #
1639
+ # # Create a request. To set request fields, pass in keyword arguments.
1640
+ # request = Google::Cloud::Talent::V4beta1::SearchJobsRequest.new
1641
+ #
1642
+ # # Call the search_jobs_for_alert method.
1643
+ # result = client.search_jobs_for_alert request
1644
+ #
1645
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::SearchJobsResponse.
1646
+ # p result
1647
+ #
1470
1648
  def search_jobs_for_alert request, options = nil
1471
1649
  raise ::ArgumentError, "request must be provided" if request.nil?
1472
1650
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -157,7 +157,8 @@ module Google
157
157
  credentials: credentials,
158
158
  endpoint: @config.endpoint,
159
159
  channel_args: @config.channel_args,
160
- interceptors: @config.interceptors
160
+ interceptors: @config.interceptors,
161
+ channel_pool_config: @config.channel_pool
161
162
  )
162
163
  end
163
164
 
@@ -744,6 +745,14 @@ module Google
744
745
  end
745
746
  end
746
747
 
748
+ ##
749
+ # Configuration for the channel pool
750
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
751
+ #
752
+ def channel_pool
753
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
754
+ end
755
+
747
756
  ##
748
757
  # Configuration RPC class for the TenantService API.
749
758
  #
@@ -186,6 +186,22 @@ module Google
186
186
  # @return [::Google::Cloud::Talent::V4beta1::Tenant]
187
187
  #
188
188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
189
+ #
190
+ # @example Basic example
191
+ # require "google/cloud/talent/v4beta1"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::Talent::V4beta1::CreateTenantRequest.new
198
+ #
199
+ # # Call the create_tenant method.
200
+ # result = client.create_tenant request
201
+ #
202
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Tenant.
203
+ # p result
204
+ #
189
205
  def create_tenant request, options = nil
190
206
  raise ::ArgumentError, "request must be provided" if request.nil?
191
207
 
@@ -251,6 +267,22 @@ module Google
251
267
  # @return [::Google::Cloud::Talent::V4beta1::Tenant]
252
268
  #
253
269
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
270
+ #
271
+ # @example Basic example
272
+ # require "google/cloud/talent/v4beta1"
273
+ #
274
+ # # Create a client object. The client can be reused for multiple calls.
275
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
276
+ #
277
+ # # Create a request. To set request fields, pass in keyword arguments.
278
+ # request = Google::Cloud::Talent::V4beta1::GetTenantRequest.new
279
+ #
280
+ # # Call the get_tenant method.
281
+ # result = client.get_tenant request
282
+ #
283
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Tenant.
284
+ # p result
285
+ #
254
286
  def get_tenant request, options = nil
255
287
  raise ::ArgumentError, "request must be provided" if request.nil?
256
288
 
@@ -326,6 +358,22 @@ module Google
326
358
  # @return [::Google::Cloud::Talent::V4beta1::Tenant]
327
359
  #
328
360
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
361
+ #
362
+ # @example Basic example
363
+ # require "google/cloud/talent/v4beta1"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::Talent::V4beta1::UpdateTenantRequest.new
370
+ #
371
+ # # Call the update_tenant method.
372
+ # result = client.update_tenant request
373
+ #
374
+ # # The returned object is of type Google::Cloud::Talent::V4beta1::Tenant.
375
+ # p result
376
+ #
329
377
  def update_tenant request, options = nil
330
378
  raise ::ArgumentError, "request must be provided" if request.nil?
331
379
 
@@ -391,6 +439,22 @@ module Google
391
439
  # @return [::Google::Protobuf::Empty]
392
440
  #
393
441
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
442
+ #
443
+ # @example Basic example
444
+ # require "google/cloud/talent/v4beta1"
445
+ #
446
+ # # Create a client object. The client can be reused for multiple calls.
447
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
448
+ #
449
+ # # Create a request. To set request fields, pass in keyword arguments.
450
+ # request = Google::Cloud::Talent::V4beta1::DeleteTenantRequest.new
451
+ #
452
+ # # Call the delete_tenant method.
453
+ # result = client.delete_tenant request
454
+ #
455
+ # # The returned object is of type Google::Protobuf::Empty.
456
+ # p result
457
+ #
394
458
  def delete_tenant request, options = nil
395
459
  raise ::ArgumentError, "request must be provided" if request.nil?
396
460
 
@@ -461,6 +525,26 @@ module Google
461
525
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Talent::V4beta1::Tenant>]
462
526
  #
463
527
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
528
+ #
529
+ # @example Basic example
530
+ # require "google/cloud/talent/v4beta1"
531
+ #
532
+ # # Create a client object. The client can be reused for multiple calls.
533
+ # client = Google::Cloud::Talent::V4beta1::TenantService::Rest::Client.new
534
+ #
535
+ # # Create a request. To set request fields, pass in keyword arguments.
536
+ # request = Google::Cloud::Talent::V4beta1::ListTenantsRequest.new
537
+ #
538
+ # # Call the list_tenants method.
539
+ # result = client.list_tenants request
540
+ #
541
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
542
+ # # over elements, and API calls will be issued to fetch pages as needed.
543
+ # result.each do |item|
544
+ # # Each element is of type ::Google::Cloud::Talent::V4beta1::Tenant.
545
+ # p item
546
+ # end
547
+ #
464
548
  def list_tenants request, options = nil
465
549
  raise ::ArgumentError, "request must be provided" if request.nil?
466
550
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4beta1
24
- VERSION = "0.8.1"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-talent-v4beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.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: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.1
19
+ version: 0.20.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  - !ruby/object:Gem::Version
280
280
  version: '0'
281
281
  requirements: []
282
- rubygems_version: 3.4.2
282
+ rubygems_version: 3.4.19
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: Cloud Talent Solution provides the capability to create, read, update, and