google-cloud-talent-v4beta1 0.8.0 → 0.9.0
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/v4beta1/company_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4beta1/company_service/rest/client.rb +88 -2
- data/lib/google/cloud/talent/v4beta1/company_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/completion/client.rb +14 -3
- data/lib/google/cloud/talent/v4beta1/completion/rest/client.rb +20 -2
- data/lib/google/cloud/talent/v4beta1/completion/rest/service_stub.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/event_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4beta1/event_service/rest/client.rb +20 -2
- data/lib/google/cloud/talent/v4beta1/event_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/talent/v4beta1/job_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4beta1/job_service/operations.rb +13 -2
- data/lib/google/cloud/talent/v4beta1/job_service/rest/client.rb +182 -2
- data/lib/google/cloud/talent/v4beta1/job_service/rest/operations.rb +82 -5
- data/lib/google/cloud/talent/v4beta1/job_service/rest/service_stub.rb +10 -10
- data/lib/google/cloud/talent/v4beta1/tenant_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4beta1/tenant_service/rest/client.rb +88 -2
- data/lib/google/cloud/talent/v4beta1/tenant_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/talent/v4beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
@@ -148,7 +148,7 @@ module Google
|
|
148
148
|
credentials = @config.credentials
|
149
149
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
150
150
|
# but only if the default endpoint does not have a region prefix.
|
151
|
-
enable_self_signed_jwt = @config.endpoint ==
|
151
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
152
152
|
!@config.endpoint.split(".").first.include?("-")
|
153
153
|
credentials ||= Credentials.default scope: @config.scope,
|
154
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1575,7 +1753,9 @@ module Google
|
|
1575
1753
|
class Configuration
|
1576
1754
|
extend ::Gapic::Config
|
1577
1755
|
|
1578
|
-
|
1756
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
1757
|
+
|
1758
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1579
1759
|
config_attr :credentials, nil do |value|
|
1580
1760
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1581
1761
|
allowed.any? { |klass| klass === value }
|
@@ -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
|
|
@@ -446,7 +521,9 @@ module Google
|
|
446
521
|
class Configuration
|
447
522
|
extend ::Gapic::Config
|
448
523
|
|
449
|
-
|
524
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
527
|
config_attr :credentials, nil do |value|
|
451
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
529
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +644,7 @@ module Google
|
|
567
644
|
|
568
645
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
646
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
647
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
648
|
else
|
572
649
|
{}
|
573
650
|
end
|
@@ -605,7 +682,7 @@ module Google
|
|
605
682
|
|
606
683
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
684
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
685
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
686
|
else
|
610
687
|
{}
|
611
688
|
end
|
@@ -643,7 +720,7 @@ module Google
|
|
643
720
|
|
644
721
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
722
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
723
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
724
|
else
|
648
725
|
{}
|
649
726
|
end
|
@@ -681,7 +758,7 @@ module Google
|
|
681
758
|
|
682
759
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
760
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
761
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
762
|
else
|
686
763
|
{}
|
687
764
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_batch_create_jobs_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_batch_update_jobs_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_batch_delete_jobs_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_search_jobs_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_search_jobs_for_alert_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -142,7 +142,7 @@ module Google
|
|
142
142
|
credentials = @config.credentials
|
143
143
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
144
144
|
# but only if the default endpoint does not have a region prefix.
|
145
|
-
enable_self_signed_jwt = @config.endpoint ==
|
145
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
146
146
|
!@config.endpoint.split(".").first.include?("-")
|
147
147
|
credentials ||= Credentials.default scope: @config.scope,
|
148
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -707,7 +708,9 @@ module Google
|
|
707
708
|
class Configuration
|
708
709
|
extend ::Gapic::Config
|
709
710
|
|
710
|
-
|
711
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
712
|
+
|
713
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
711
714
|
config_attr :credentials, nil do |value|
|
712
715
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
713
716
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -742,6 +745,14 @@ module Google
|
|
742
745
|
end
|
743
746
|
end
|
744
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
|
+
|
745
756
|
##
|
746
757
|
# Configuration RPC class for the TenantService API.
|
747
758
|
#
|