google-cloud-talent-v4 0.10.1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ec4604ca906e8b374982b6e803dc4d3ebd0e7f82b69f17b3f6e6166d08fa1c0b
4
- data.tar.gz: a1ac5ae514886859a80856b8c73573467fde773908fb8c4d7c351a3c3a6a29b8
3
+ metadata.gz: 0a28590004a3543dafc9f41d257da6b4924b20b98436716d3697c057bd9dd090
4
+ data.tar.gz: 3d706fd8a1249fe3e2a427dc0b7a6b6c4f90d404bdb0ea011790db3ce9a326c3
5
5
  SHA512:
6
- metadata.gz: b24210eec60149cbb0e88bf6e03b87878cf675fd3f4b2adcbac2fce690ec4300c74dc3f428f17b4b798f615145293bce7f87f5f511f536b3bf26a1ce725ec31c
7
- data.tar.gz: 7f08ecbbe0ea9a489d4aca8f70c7f73fa520351c66c0f66148ca59b19d0eb1a039b7edb293903d4c2fe374dd09da5fa0c0db6b663b9b1c28a765757bbabbfa5f
6
+ metadata.gz: 612c920fae52dc05e1b20481588d9725dc1a0418dbbf41857c22bbd8673e5fd1c5b456e98c4980d0f1b716d35315ed91d7669aef7f7a564426b44fc558e5a91c
7
+ data.tar.gz: b602479d5a937c21323f0f50ec2ecc502d8fe1eeb5d9df52d3a987d4a33a73129d393bbbd43f2601c3e4b3f0a7b9e6917c2ec02fb1f48acf8cbb8252cc02bd6b
@@ -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
 
@@ -754,6 +755,14 @@ module Google
754
755
  end
755
756
  end
756
757
 
758
+ ##
759
+ # Configuration for the channel pool
760
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
761
+ #
762
+ def channel_pool
763
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
764
+ end
765
+
757
766
  ##
758
767
  # Configuration RPC class for the CompanyService API.
759
768
  #
@@ -186,6 +186,22 @@ module Google
186
186
  # @return [::Google::Cloud::Talent::V4::Company]
187
187
  #
188
188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
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::CompanyService::Rest::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::Talent::V4::CreateCompanyRequest.new
198
+ #
199
+ # # Call the create_company method.
200
+ # result = client.create_company request
201
+ #
202
+ # # The returned object is of type Google::Cloud::Talent::V4::Company.
203
+ # p result
204
+ #
189
205
  def create_company request, options = nil
190
206
  raise ::ArgumentError, "request must be provided" if request.nil?
191
207
 
@@ -252,6 +268,22 @@ module Google
252
268
  # @return [::Google::Cloud::Talent::V4::Company]
253
269
  #
254
270
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
271
+ #
272
+ # @example Basic example
273
+ # require "google/cloud/talent/v4"
274
+ #
275
+ # # Create a client object. The client can be reused for multiple calls.
276
+ # client = Google::Cloud::Talent::V4::CompanyService::Rest::Client.new
277
+ #
278
+ # # Create a request. To set request fields, pass in keyword arguments.
279
+ # request = Google::Cloud::Talent::V4::GetCompanyRequest.new
280
+ #
281
+ # # Call the get_company method.
282
+ # result = client.get_company request
283
+ #
284
+ # # The returned object is of type Google::Cloud::Talent::V4::Company.
285
+ # p result
286
+ #
255
287
  def get_company request, options = nil
256
288
  raise ::ArgumentError, "request must be provided" if request.nil?
257
289
 
@@ -326,6 +358,22 @@ module Google
326
358
  # @return [::Google::Cloud::Talent::V4::Company]
327
359
  #
328
360
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
361
+ #
362
+ # @example Basic example
363
+ # require "google/cloud/talent/v4"
364
+ #
365
+ # # Create a client object. The client can be reused for multiple calls.
366
+ # client = Google::Cloud::Talent::V4::CompanyService::Rest::Client.new
367
+ #
368
+ # # Create a request. To set request fields, pass in keyword arguments.
369
+ # request = Google::Cloud::Talent::V4::UpdateCompanyRequest.new
370
+ #
371
+ # # Call the update_company method.
372
+ # result = client.update_company request
373
+ #
374
+ # # The returned object is of type Google::Cloud::Talent::V4::Company.
375
+ # p result
376
+ #
329
377
  def update_company request, options = nil
330
378
  raise ::ArgumentError, "request must be provided" if request.nil?
331
379
 
@@ -393,6 +441,22 @@ module Google
393
441
  # @return [::Google::Protobuf::Empty]
394
442
  #
395
443
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
444
+ #
445
+ # @example Basic example
446
+ # require "google/cloud/talent/v4"
447
+ #
448
+ # # Create a client object. The client can be reused for multiple calls.
449
+ # client = Google::Cloud::Talent::V4::CompanyService::Rest::Client.new
450
+ #
451
+ # # Create a request. To set request fields, pass in keyword arguments.
452
+ # request = Google::Cloud::Talent::V4::DeleteCompanyRequest.new
453
+ #
454
+ # # Call the delete_company method.
455
+ # result = client.delete_company request
456
+ #
457
+ # # The returned object is of type Google::Protobuf::Empty.
458
+ # p result
459
+ #
396
460
  def delete_company request, options = nil
397
461
  raise ::ArgumentError, "request must be provided" if request.nil?
398
462
 
@@ -471,6 +535,26 @@ module Google
471
535
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Talent::V4::Company>]
472
536
  #
473
537
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
538
+ #
539
+ # @example Basic example
540
+ # require "google/cloud/talent/v4"
541
+ #
542
+ # # Create a client object. The client can be reused for multiple calls.
543
+ # client = Google::Cloud::Talent::V4::CompanyService::Rest::Client.new
544
+ #
545
+ # # Create a request. To set request fields, pass in keyword arguments.
546
+ # request = Google::Cloud::Talent::V4::ListCompaniesRequest.new
547
+ #
548
+ # # Call the list_companies method.
549
+ # result = client.list_companies request
550
+ #
551
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
552
+ # # over elements, and API calls will be issued to fetch pages as needed.
553
+ # result.each do |item|
554
+ # # Each element is of type ::Google::Cloud::Talent::V4::Company.
555
+ # p item
556
+ # end
557
+ #
474
558
  def list_companies request, options = nil
475
559
  raise ::ArgumentError, "request must be provided" if request.nil?
476
560
 
@@ -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
 
@@ -384,6 +385,14 @@ module Google
384
385
  end
385
386
  end
386
387
 
388
+ ##
389
+ # Configuration for the channel pool
390
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
391
+ #
392
+ def channel_pool
393
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
394
+ end
395
+
387
396
  ##
388
397
  # Configuration RPC class for the Completion API.
389
398
  #
@@ -198,6 +198,22 @@ module Google
198
198
  # @return [::Google::Cloud::Talent::V4::CompleteQueryResponse]
199
199
  #
200
200
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
201
+ #
202
+ # @example Basic example
203
+ # require "google/cloud/talent/v4"
204
+ #
205
+ # # Create a client object. The client can be reused for multiple calls.
206
+ # client = Google::Cloud::Talent::V4::Completion::Rest::Client.new
207
+ #
208
+ # # Create a request. To set request fields, pass in keyword arguments.
209
+ # request = Google::Cloud::Talent::V4::CompleteQueryRequest.new
210
+ #
211
+ # # Call the complete_query method.
212
+ # result = client.complete_query request
213
+ #
214
+ # # The returned object is of type Google::Cloud::Talent::V4::CompleteQueryResponse.
215
+ # p result
216
+ #
201
217
  def complete_query request, options = nil
202
218
  raise ::ArgumentError, "request must be provided" if request.nil?
203
219
 
@@ -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
 
@@ -362,6 +363,14 @@ module Google
362
363
  end
363
364
  end
364
365
 
366
+ ##
367
+ # Configuration for the channel pool
368
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
369
+ #
370
+ def channel_pool
371
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
372
+ end
373
+
365
374
  ##
366
375
  # Configuration RPC class for the EventService API.
367
376
  #
@@ -176,6 +176,22 @@ module Google
176
176
  # @return [::Google::Cloud::Talent::V4::ClientEvent]
177
177
  #
178
178
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
179
+ #
180
+ # @example Basic example
181
+ # require "google/cloud/talent/v4"
182
+ #
183
+ # # Create a client object. The client can be reused for multiple calls.
184
+ # client = Google::Cloud::Talent::V4::EventService::Rest::Client.new
185
+ #
186
+ # # Create a request. To set request fields, pass in keyword arguments.
187
+ # request = Google::Cloud::Talent::V4::CreateClientEventRequest.new
188
+ #
189
+ # # Call the create_client_event method.
190
+ # result = client.create_client_event request
191
+ #
192
+ # # The returned object is of type Google::Cloud::Talent::V4::ClientEvent.
193
+ # p result
194
+ #
179
195
  def create_client_event request, options = nil
180
196
  raise ::ArgumentError, "request must be provided" if request.nil?
181
197
 
@@ -171,7 +171,8 @@ module Google
171
171
  credentials: credentials,
172
172
  endpoint: @config.endpoint,
173
173
  channel_args: @config.channel_args,
174
- interceptors: @config.interceptors
174
+ interceptors: @config.interceptors,
175
+ channel_pool_config: @config.channel_pool
175
176
  )
176
177
  end
177
178
 
@@ -1856,6 +1857,14 @@ module Google
1856
1857
  end
1857
1858
  end
1858
1859
 
1860
+ ##
1861
+ # Configuration for the channel pool
1862
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1863
+ #
1864
+ def channel_pool
1865
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1866
+ end
1867
+
1859
1868
  ##
1860
1869
  # Configuration RPC class for the JobService API.
1861
1870
  #
@@ -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
  #
@@ -210,6 +210,22 @@ module Google
210
210
  # @return [::Google::Cloud::Talent::V4::Job]
211
211
  #
212
212
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
213
+ #
214
+ # @example Basic example
215
+ # require "google/cloud/talent/v4"
216
+ #
217
+ # # Create a client object. The client can be reused for multiple calls.
218
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
219
+ #
220
+ # # Create a request. To set request fields, pass in keyword arguments.
221
+ # request = Google::Cloud::Talent::V4::CreateJobRequest.new
222
+ #
223
+ # # Call the create_job method.
224
+ # result = client.create_job request
225
+ #
226
+ # # The returned object is of type Google::Cloud::Talent::V4::Job.
227
+ # p result
228
+ #
213
229
  def create_job request, options = nil
214
230
  raise ::ArgumentError, "request must be provided" if request.nil?
215
231
 
@@ -278,6 +294,29 @@ module Google
278
294
  # @return [::Gapic::Operation]
279
295
  #
280
296
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
297
+ #
298
+ # @example Basic example
299
+ # require "google/cloud/talent/v4"
300
+ #
301
+ # # Create a client object. The client can be reused for multiple calls.
302
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
303
+ #
304
+ # # Create a request. To set request fields, pass in keyword arguments.
305
+ # request = Google::Cloud::Talent::V4::BatchCreateJobsRequest.new
306
+ #
307
+ # # Call the batch_create_jobs method.
308
+ # result = client.batch_create_jobs request
309
+ #
310
+ # # The returned object is of type Gapic::Operation. You can use it to
311
+ # # check the status of an operation, cancel it, or wait for results.
312
+ # # Here is how to wait for a response.
313
+ # result.wait_until_done! timeout: 60
314
+ # if result.response?
315
+ # p result.response
316
+ # else
317
+ # puts "No response received."
318
+ # end
319
+ #
281
320
  def batch_create_jobs request, options = nil
282
321
  raise ::ArgumentError, "request must be provided" if request.nil?
283
322
 
@@ -346,6 +385,22 @@ module Google
346
385
  # @return [::Google::Cloud::Talent::V4::Job]
347
386
  #
348
387
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
388
+ #
389
+ # @example Basic example
390
+ # require "google/cloud/talent/v4"
391
+ #
392
+ # # Create a client object. The client can be reused for multiple calls.
393
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
394
+ #
395
+ # # Create a request. To set request fields, pass in keyword arguments.
396
+ # request = Google::Cloud::Talent::V4::GetJobRequest.new
397
+ #
398
+ # # Call the get_job method.
399
+ # result = client.get_job request
400
+ #
401
+ # # The returned object is of type Google::Cloud::Talent::V4::Job.
402
+ # p result
403
+ #
349
404
  def get_job request, options = nil
350
405
  raise ::ArgumentError, "request must be provided" if request.nil?
351
406
 
@@ -421,6 +476,22 @@ module Google
421
476
  # @return [::Google::Cloud::Talent::V4::Job]
422
477
  #
423
478
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
479
+ #
480
+ # @example Basic example
481
+ # require "google/cloud/talent/v4"
482
+ #
483
+ # # Create a client object. The client can be reused for multiple calls.
484
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
485
+ #
486
+ # # Create a request. To set request fields, pass in keyword arguments.
487
+ # request = Google::Cloud::Talent::V4::UpdateJobRequest.new
488
+ #
489
+ # # Call the update_job method.
490
+ # result = client.update_job request
491
+ #
492
+ # # The returned object is of type Google::Cloud::Talent::V4::Job.
493
+ # p result
494
+ #
424
495
  def update_job request, options = nil
425
496
  raise ::ArgumentError, "request must be provided" if request.nil?
426
497
 
@@ -506,6 +577,29 @@ module Google
506
577
  # @return [::Gapic::Operation]
507
578
  #
508
579
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
580
+ #
581
+ # @example Basic example
582
+ # require "google/cloud/talent/v4"
583
+ #
584
+ # # Create a client object. The client can be reused for multiple calls.
585
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
586
+ #
587
+ # # Create a request. To set request fields, pass in keyword arguments.
588
+ # request = Google::Cloud::Talent::V4::BatchUpdateJobsRequest.new
589
+ #
590
+ # # Call the batch_update_jobs method.
591
+ # result = client.batch_update_jobs request
592
+ #
593
+ # # The returned object is of type Gapic::Operation. You can use it to
594
+ # # check the status of an operation, cancel it, or wait for results.
595
+ # # Here is how to wait for a response.
596
+ # result.wait_until_done! timeout: 60
597
+ # if result.response?
598
+ # p result.response
599
+ # else
600
+ # puts "No response received."
601
+ # end
602
+ #
509
603
  def batch_update_jobs request, options = nil
510
604
  raise ::ArgumentError, "request must be provided" if request.nil?
511
605
 
@@ -576,6 +670,22 @@ module Google
576
670
  # @return [::Google::Protobuf::Empty]
577
671
  #
578
672
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
673
+ #
674
+ # @example Basic example
675
+ # require "google/cloud/talent/v4"
676
+ #
677
+ # # Create a client object. The client can be reused for multiple calls.
678
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
679
+ #
680
+ # # Create a request. To set request fields, pass in keyword arguments.
681
+ # request = Google::Cloud::Talent::V4::DeleteJobRequest.new
682
+ #
683
+ # # Call the delete_job method.
684
+ # result = client.delete_job request
685
+ #
686
+ # # The returned object is of type Google::Protobuf::Empty.
687
+ # p result
688
+ #
579
689
  def delete_job request, options = nil
580
690
  raise ::ArgumentError, "request must be provided" if request.nil?
581
691
 
@@ -650,6 +760,29 @@ module Google
650
760
  # @return [::Gapic::Operation]
651
761
  #
652
762
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
763
+ #
764
+ # @example Basic example
765
+ # require "google/cloud/talent/v4"
766
+ #
767
+ # # Create a client object. The client can be reused for multiple calls.
768
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
769
+ #
770
+ # # Create a request. To set request fields, pass in keyword arguments.
771
+ # request = Google::Cloud::Talent::V4::BatchDeleteJobsRequest.new
772
+ #
773
+ # # Call the batch_delete_jobs method.
774
+ # result = client.batch_delete_jobs request
775
+ #
776
+ # # The returned object is of type Gapic::Operation. You can use it to
777
+ # # check the status of an operation, cancel it, or wait for results.
778
+ # # Here is how to wait for a response.
779
+ # result.wait_until_done! timeout: 60
780
+ # if result.response?
781
+ # p result.response
782
+ # else
783
+ # puts "No response received."
784
+ # end
785
+ #
653
786
  def batch_delete_jobs request, options = nil
654
787
  raise ::ArgumentError, "request must be provided" if request.nil?
655
788
 
@@ -756,6 +889,26 @@ module Google
756
889
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Talent::V4::Job>]
757
890
  #
758
891
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
892
+ #
893
+ # @example Basic example
894
+ # require "google/cloud/talent/v4"
895
+ #
896
+ # # Create a client object. The client can be reused for multiple calls.
897
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
898
+ #
899
+ # # Create a request. To set request fields, pass in keyword arguments.
900
+ # request = Google::Cloud::Talent::V4::ListJobsRequest.new
901
+ #
902
+ # # Call the list_jobs method.
903
+ # result = client.list_jobs request
904
+ #
905
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
906
+ # # over elements, and API calls will be issued to fetch pages as needed.
907
+ # result.each do |item|
908
+ # # Each element is of type ::Google::Cloud::Talent::V4::Job.
909
+ # p item
910
+ # end
911
+ #
759
912
  def list_jobs request, options = nil
760
913
  raise ::ArgumentError, "request must be provided" if request.nil?
761
914
 
@@ -1095,6 +1248,22 @@ module Google
1095
1248
  # @return [::Google::Cloud::Talent::V4::SearchJobsResponse]
1096
1249
  #
1097
1250
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1251
+ #
1252
+ # @example Basic example
1253
+ # require "google/cloud/talent/v4"
1254
+ #
1255
+ # # Create a client object. The client can be reused for multiple calls.
1256
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
1257
+ #
1258
+ # # Create a request. To set request fields, pass in keyword arguments.
1259
+ # request = Google::Cloud::Talent::V4::SearchJobsRequest.new
1260
+ #
1261
+ # # Call the search_jobs method.
1262
+ # result = client.search_jobs request
1263
+ #
1264
+ # # The returned object is of type Google::Cloud::Talent::V4::SearchJobsResponse.
1265
+ # p result
1266
+ #
1098
1267
  def search_jobs request, options = nil
1099
1268
  raise ::ArgumentError, "request must be provided" if request.nil?
1100
1269
 
@@ -1438,6 +1607,22 @@ module Google
1438
1607
  # @return [::Google::Cloud::Talent::V4::SearchJobsResponse]
1439
1608
  #
1440
1609
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1610
+ #
1611
+ # @example Basic example
1612
+ # require "google/cloud/talent/v4"
1613
+ #
1614
+ # # Create a client object. The client can be reused for multiple calls.
1615
+ # client = Google::Cloud::Talent::V4::JobService::Rest::Client.new
1616
+ #
1617
+ # # Create a request. To set request fields, pass in keyword arguments.
1618
+ # request = Google::Cloud::Talent::V4::SearchJobsRequest.new
1619
+ #
1620
+ # # Call the search_jobs_for_alert method.
1621
+ # result = client.search_jobs_for_alert request
1622
+ #
1623
+ # # The returned object is of type Google::Cloud::Talent::V4::SearchJobsResponse.
1624
+ # p result
1625
+ #
1441
1626
  def search_jobs_for_alert request, options = nil
1442
1627
  raise ::ArgumentError, "request must be provided" if request.nil?
1443
1628
 
@@ -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
 
@@ -742,6 +743,14 @@ module Google
742
743
  end
743
744
  end
744
745
 
746
+ ##
747
+ # Configuration for the channel pool
748
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
749
+ #
750
+ def channel_pool
751
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
752
+ end
753
+
745
754
  ##
746
755
  # Configuration RPC class for the TenantService API.
747
756
  #
@@ -186,6 +186,22 @@ module Google
186
186
  # @return [::Google::Cloud::Talent::V4::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/v4"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::Talent::V4::TenantService::Rest::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::Talent::V4::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::V4::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::V4::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/v4"
273
+ #
274
+ # # Create a client object. The client can be reused for multiple calls.
275
+ # client = Google::Cloud::Talent::V4::TenantService::Rest::Client.new
276
+ #
277
+ # # Create a request. To set request fields, pass in keyword arguments.
278
+ # request = Google::Cloud::Talent::V4::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::V4::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
 
@@ -324,6 +356,22 @@ module Google
324
356
  # @return [::Google::Cloud::Talent::V4::Tenant]
325
357
  #
326
358
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
359
+ #
360
+ # @example Basic example
361
+ # require "google/cloud/talent/v4"
362
+ #
363
+ # # Create a client object. The client can be reused for multiple calls.
364
+ # client = Google::Cloud::Talent::V4::TenantService::Rest::Client.new
365
+ #
366
+ # # Create a request. To set request fields, pass in keyword arguments.
367
+ # request = Google::Cloud::Talent::V4::UpdateTenantRequest.new
368
+ #
369
+ # # Call the update_tenant method.
370
+ # result = client.update_tenant request
371
+ #
372
+ # # The returned object is of type Google::Cloud::Talent::V4::Tenant.
373
+ # p result
374
+ #
327
375
  def update_tenant request, options = nil
328
376
  raise ::ArgumentError, "request must be provided" if request.nil?
329
377
 
@@ -389,6 +437,22 @@ module Google
389
437
  # @return [::Google::Protobuf::Empty]
390
438
  #
391
439
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
440
+ #
441
+ # @example Basic example
442
+ # require "google/cloud/talent/v4"
443
+ #
444
+ # # Create a client object. The client can be reused for multiple calls.
445
+ # client = Google::Cloud::Talent::V4::TenantService::Rest::Client.new
446
+ #
447
+ # # Create a request. To set request fields, pass in keyword arguments.
448
+ # request = Google::Cloud::Talent::V4::DeleteTenantRequest.new
449
+ #
450
+ # # Call the delete_tenant method.
451
+ # result = client.delete_tenant request
452
+ #
453
+ # # The returned object is of type Google::Protobuf::Empty.
454
+ # p result
455
+ #
392
456
  def delete_tenant request, options = nil
393
457
  raise ::ArgumentError, "request must be provided" if request.nil?
394
458
 
@@ -459,6 +523,26 @@ module Google
459
523
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Talent::V4::Tenant>]
460
524
  #
461
525
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
526
+ #
527
+ # @example Basic example
528
+ # require "google/cloud/talent/v4"
529
+ #
530
+ # # Create a client object. The client can be reused for multiple calls.
531
+ # client = Google::Cloud::Talent::V4::TenantService::Rest::Client.new
532
+ #
533
+ # # Create a request. To set request fields, pass in keyword arguments.
534
+ # request = Google::Cloud::Talent::V4::ListTenantsRequest.new
535
+ #
536
+ # # Call the list_tenants method.
537
+ # result = client.list_tenants request
538
+ #
539
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
540
+ # # over elements, and API calls will be issued to fetch pages as needed.
541
+ # result.each do |item|
542
+ # # Each element is of type ::Google::Cloud::Talent::V4::Tenant.
543
+ # p item
544
+ # end
545
+ #
462
546
  def list_tenants request, options = nil
463
547
  raise ::ArgumentError, "request must be provided" if request.nil?
464
548
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Talent
23
23
  module V4
24
- VERSION = "0.10.1"
24
+ VERSION = "0.11.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-v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.11.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
@@ -278,7 +278,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
278
278
  - !ruby/object:Gem::Version
279
279
  version: '0'
280
280
  requirements: []
281
- rubygems_version: 3.4.2
281
+ rubygems_version: 3.4.19
282
282
  signing_key:
283
283
  specification_version: 4
284
284
  summary: Cloud Talent Solution provides the capability to create, read, update, and