google-cloud-talent-v4 0.10.0 → 0.11.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/v4/company_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4/company_service/rest/client.rb +88 -2
- data/lib/google/cloud/talent/v4/company_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/talent/v4/completion/client.rb +14 -3
- data/lib/google/cloud/talent/v4/completion/rest/client.rb +20 -2
- data/lib/google/cloud/talent/v4/completion/rest/service_stub.rb +1 -1
- data/lib/google/cloud/talent/v4/event_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4/event_service/rest/client.rb +20 -2
- data/lib/google/cloud/talent/v4/event_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/talent/v4/job_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4/job_service/operations.rb +13 -2
- data/lib/google/cloud/talent/v4/job_service/rest/client.rb +189 -2
- data/lib/google/cloud/talent/v4/job_service/rest/operations.rb +82 -5
- data/lib/google/cloud/talent/v4/job_service/rest/service_stub.rb +10 -10
- data/lib/google/cloud/talent/v4/tenant_service/client.rb +14 -3
- data/lib/google/cloud/talent/v4/tenant_service/rest/client.rb +88 -2
- data/lib/google/cloud/talent/v4/tenant_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/talent/v4/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0a28590004a3543dafc9f41d257da6b4924b20b98436716d3697c057bd9dd090
|
4
|
+
data.tar.gz: 3d706fd8a1249fe3e2a427dc0b7a6b6c4f90d404bdb0ea011790db3ce9a326c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 612c920fae52dc05e1b20481588d9725dc1a0418dbbf41857c22bbd8673e5fd1c5b456e98c4980d0f1b716d35315ed91d7669aef7f7a564426b44fc558e5a91c
|
7
|
+
data.tar.gz: b602479d5a937c21323f0f50ec2ecc502d8fe1eeb5d9df52d3a987d4a33a73129d393bbbd43f2601c3e4b3f0a7b9e6917c2ec02fb1f48acf8cbb8252cc02bd6b
|
@@ -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
|
|
@@ -717,7 +718,9 @@ module Google
|
|
717
718
|
class Configuration
|
718
719
|
extend ::Gapic::Config
|
719
720
|
|
720
|
-
|
721
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
722
|
+
|
723
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
721
724
|
config_attr :credentials, nil do |value|
|
722
725
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
723
726
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -752,6 +755,14 @@ module Google
|
|
752
755
|
end
|
753
756
|
end
|
754
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
|
+
|
755
766
|
##
|
756
767
|
# Configuration RPC class for the CompanyService API.
|
757
768
|
#
|
@@ -138,7 +138,7 @@ module Google
|
|
138
138
|
credentials = @config.credentials
|
139
139
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
140
140
|
# but only if the default endpoint does not have a region prefix.
|
141
|
-
enable_self_signed_jwt = @config.endpoint ==
|
141
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
142
142
|
!@config.endpoint.split(".").first.include?("-")
|
143
143
|
credentials ||= Credentials.default scope: @config.scope,
|
144
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -580,7 +664,9 @@ module Google
|
|
580
664
|
class Configuration
|
581
665
|
extend ::Gapic::Config
|
582
666
|
|
583
|
-
|
667
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
584
670
|
config_attr :credentials, nil do |value|
|
585
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
586
672
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_company_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_get_company_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_update_company_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_delete_company_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_list_companies_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
|
@@ -128,7 +128,7 @@ module Google
|
|
128
128
|
credentials = @config.credentials
|
129
129
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
130
130
|
# but only if the default endpoint does not have a region prefix.
|
131
|
-
enable_self_signed_jwt = @config.endpoint ==
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
132
132
|
!@config.endpoint.split(".").first.include?("-")
|
133
133
|
credentials ||= Credentials.default scope: @config.scope,
|
134
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -347,7 +348,9 @@ module Google
|
|
347
348
|
class Configuration
|
348
349
|
extend ::Gapic::Config
|
349
350
|
|
350
|
-
|
351
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
352
|
+
|
353
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
351
354
|
config_attr :credentials, nil do |value|
|
352
355
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
353
356
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -382,6 +385,14 @@ module Google
|
|
382
385
|
end
|
383
386
|
end
|
384
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
|
+
|
385
396
|
##
|
386
397
|
# Configuration RPC class for the Completion API.
|
387
398
|
#
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
credentials = @config.credentials
|
125
125
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
126
126
|
# but only if the default endpoint does not have a region prefix.
|
127
|
-
enable_self_signed_jwt = @config.endpoint ==
|
127
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
128
128
|
!@config.endpoint.split(".").first.include?("-")
|
129
129
|
credentials ||= Credentials.default scope: @config.scope,
|
130
130
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -306,7 +322,9 @@ module Google
|
|
306
322
|
class Configuration
|
307
323
|
extend ::Gapic::Config
|
308
324
|
|
309
|
-
|
325
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
326
|
+
|
327
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
310
328
|
config_attr :credentials, nil do |value|
|
311
329
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
312
330
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_complete_query_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
|
@@ -125,7 +125,7 @@ module Google
|
|
125
125
|
credentials = @config.credentials
|
126
126
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
127
127
|
# but only if the default endpoint does not have a region prefix.
|
128
|
-
enable_self_signed_jwt = @config.endpoint ==
|
128
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
129
129
|
!@config.endpoint.split(".").first.include?("-")
|
130
130
|
credentials ||= Credentials.default scope: @config.scope,
|
131
131
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -325,7 +326,9 @@ module Google
|
|
325
326
|
class Configuration
|
326
327
|
extend ::Gapic::Config
|
327
328
|
|
328
|
-
|
329
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
330
|
+
|
331
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
329
332
|
config_attr :credentials, nil do |value|
|
330
333
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
331
334
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -360,6 +363,14 @@ module Google
|
|
360
363
|
end
|
361
364
|
end
|
362
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
|
+
|
363
374
|
##
|
364
375
|
# Configuration RPC class for the EventService API.
|
365
376
|
#
|
@@ -121,7 +121,7 @@ module Google
|
|
121
121
|
credentials = @config.credentials
|
122
122
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
123
123
|
# but only if the default endpoint does not have a region prefix.
|
124
|
-
enable_self_signed_jwt = @config.endpoint ==
|
124
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
125
125
|
!@config.endpoint.split(".").first.include?("-")
|
126
126
|
credentials ||= Credentials.default scope: @config.scope,
|
127
127
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -284,7 +300,9 @@ module Google
|
|
284
300
|
class Configuration
|
285
301
|
extend ::Gapic::Config
|
286
302
|
|
287
|
-
|
303
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
304
|
+
|
305
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
288
306
|
config_attr :credentials, nil do |value|
|
289
307
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
290
308
|
allowed.any? { |klass| klass === value }
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_client_event_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
|
@@ -150,7 +150,7 @@ module Google
|
|
150
150
|
credentials = @config.credentials
|
151
151
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
152
152
|
# but only if the default endpoint does not have a region prefix.
|
153
|
-
enable_self_signed_jwt = @config.endpoint ==
|
153
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
154
154
|
!@config.endpoint.split(".").first.include?("-")
|
155
155
|
credentials ||= Credentials.default scope: @config.scope,
|
156
156
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1819,7 +1820,9 @@ module Google
|
|
1819
1820
|
class Configuration
|
1820
1821
|
extend ::Gapic::Config
|
1821
1822
|
|
1822
|
-
|
1823
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
1824
|
+
|
1825
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1823
1826
|
config_attr :credentials, nil do |value|
|
1824
1827
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1825
1828
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -1854,6 +1857,14 @@ module Google
|
|
1854
1857
|
end
|
1855
1858
|
end
|
1856
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
|
+
|
1857
1868
|
##
|
1858
1869
|
# Configuration RPC class for the JobService API.
|
1859
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
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "jobs.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
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
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|