google-cloud-retail-v2 0.16.0 → 0.17.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 +4 -4
- data/lib/google/cloud/retail/v2/catalog_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +184 -2
- data/lib/google/cloud/retail/v2/catalog_service/rest/service_stub.rb +11 -11
- data/lib/google/cloud/retail/v2/completion_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +13 -2
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +43 -2
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +82 -5
- data/lib/google/cloud/retail/v2/completion_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/retail/v2/control_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +88 -2
- data/lib/google/cloud/retail/v2/control_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/retail/v2/model_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/model_service/operations.rb +13 -2
- data/lib/google/cloud/retail/v2/model_service/rest/client.rb +150 -2
- data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +82 -5
- data/lib/google/cloud/retail/v2/model_service/rest/service_stub.rb +8 -8
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +20 -2
- data/lib/google/cloud/retail/v2/prediction_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/retail/v2/product_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/product_service/operations.rb +13 -2
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +226 -2
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +82 -5
- data/lib/google/cloud/retail/v2/product_service/rest/service_stub.rb +11 -11
- data/lib/google/cloud/retail/v2/search_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +24 -2
- data/lib/google/cloud/retail/v2/search_service/rest/service_stub.rb +1 -1
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +120 -2
- data/lib/google/cloud/retail/v2/serving_config_service/rest/service_stub.rb +7 -7
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +14 -3
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +13 -2
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +105 -2
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +82 -5
- data/lib/google/cloud/retail/v2/user_event_service/rest/service_stub.rb +5 -5
- data/lib/google/cloud/retail/v2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
|
@@ -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 = "retail.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_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
|
|
@@ -97,7 +97,7 @@ module Google
|
|
|
97
97
|
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_import_completion_data_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
|
|
@@ -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
|
|
@@ -145,7 +145,8 @@ module Google
|
|
|
145
145
|
credentials: credentials,
|
|
146
146
|
endpoint: @config.endpoint,
|
|
147
147
|
channel_args: @config.channel_args,
|
|
148
|
-
interceptors: @config.interceptors
|
|
148
|
+
interceptors: @config.interceptors,
|
|
149
|
+
channel_pool_config: @config.channel_pool
|
|
149
150
|
)
|
|
150
151
|
end
|
|
151
152
|
|
|
@@ -715,7 +716,9 @@ module Google
|
|
|
715
716
|
class Configuration
|
|
716
717
|
extend ::Gapic::Config
|
|
717
718
|
|
|
718
|
-
|
|
719
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
720
|
+
|
|
721
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
719
722
|
config_attr :credentials, nil do |value|
|
|
720
723
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
721
724
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -750,6 +753,14 @@ module Google
|
|
|
750
753
|
end
|
|
751
754
|
end
|
|
752
755
|
|
|
756
|
+
##
|
|
757
|
+
# Configuration for the channel pool
|
|
758
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
759
|
+
#
|
|
760
|
+
def channel_pool
|
|
761
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
762
|
+
end
|
|
763
|
+
|
|
753
764
|
##
|
|
754
765
|
# Configuration RPC class for the ControlService API.
|
|
755
766
|
#
|
|
@@ -120,7 +120,7 @@ module Google
|
|
|
120
120
|
credentials = @config.credentials
|
|
121
121
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
122
122
|
# but only if the default endpoint does not have a region prefix.
|
|
123
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
123
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
124
124
|
!@config.endpoint.split(".").first.include?("-")
|
|
125
125
|
credentials ||= Credentials.default scope: @config.scope,
|
|
126
126
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -188,6 +188,22 @@ module Google
|
|
|
188
188
|
# @return [::Google::Cloud::Retail::V2::Control]
|
|
189
189
|
#
|
|
190
190
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
191
|
+
#
|
|
192
|
+
# @example Basic example
|
|
193
|
+
# require "google/cloud/retail/v2"
|
|
194
|
+
#
|
|
195
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
196
|
+
# client = Google::Cloud::Retail::V2::ControlService::Rest::Client.new
|
|
197
|
+
#
|
|
198
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
199
|
+
# request = Google::Cloud::Retail::V2::CreateControlRequest.new
|
|
200
|
+
#
|
|
201
|
+
# # Call the create_control method.
|
|
202
|
+
# result = client.create_control request
|
|
203
|
+
#
|
|
204
|
+
# # The returned object is of type Google::Cloud::Retail::V2::Control.
|
|
205
|
+
# p result
|
|
206
|
+
#
|
|
191
207
|
def create_control request, options = nil
|
|
192
208
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
193
209
|
|
|
@@ -254,6 +270,22 @@ module Google
|
|
|
254
270
|
# @return [::Google::Protobuf::Empty]
|
|
255
271
|
#
|
|
256
272
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
273
|
+
#
|
|
274
|
+
# @example Basic example
|
|
275
|
+
# require "google/cloud/retail/v2"
|
|
276
|
+
#
|
|
277
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
278
|
+
# client = Google::Cloud::Retail::V2::ControlService::Rest::Client.new
|
|
279
|
+
#
|
|
280
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
281
|
+
# request = Google::Cloud::Retail::V2::DeleteControlRequest.new
|
|
282
|
+
#
|
|
283
|
+
# # Call the delete_control method.
|
|
284
|
+
# result = client.delete_control request
|
|
285
|
+
#
|
|
286
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
|
287
|
+
# p result
|
|
288
|
+
#
|
|
257
289
|
def delete_control request, options = nil
|
|
258
290
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
259
291
|
|
|
@@ -329,6 +361,22 @@ module Google
|
|
|
329
361
|
# @return [::Google::Cloud::Retail::V2::Control]
|
|
330
362
|
#
|
|
331
363
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
364
|
+
#
|
|
365
|
+
# @example Basic example
|
|
366
|
+
# require "google/cloud/retail/v2"
|
|
367
|
+
#
|
|
368
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
369
|
+
# client = Google::Cloud::Retail::V2::ControlService::Rest::Client.new
|
|
370
|
+
#
|
|
371
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
372
|
+
# request = Google::Cloud::Retail::V2::UpdateControlRequest.new
|
|
373
|
+
#
|
|
374
|
+
# # Call the update_control method.
|
|
375
|
+
# result = client.update_control request
|
|
376
|
+
#
|
|
377
|
+
# # The returned object is of type Google::Cloud::Retail::V2::Control.
|
|
378
|
+
# p result
|
|
379
|
+
#
|
|
332
380
|
def update_control request, options = nil
|
|
333
381
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
334
382
|
|
|
@@ -392,6 +440,22 @@ module Google
|
|
|
392
440
|
# @return [::Google::Cloud::Retail::V2::Control]
|
|
393
441
|
#
|
|
394
442
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
443
|
+
#
|
|
444
|
+
# @example Basic example
|
|
445
|
+
# require "google/cloud/retail/v2"
|
|
446
|
+
#
|
|
447
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
448
|
+
# client = Google::Cloud::Retail::V2::ControlService::Rest::Client.new
|
|
449
|
+
#
|
|
450
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
451
|
+
# request = Google::Cloud::Retail::V2::GetControlRequest.new
|
|
452
|
+
#
|
|
453
|
+
# # Call the get_control method.
|
|
454
|
+
# result = client.get_control request
|
|
455
|
+
#
|
|
456
|
+
# # The returned object is of type Google::Cloud::Retail::V2::Control.
|
|
457
|
+
# p result
|
|
458
|
+
#
|
|
395
459
|
def get_control request, options = nil
|
|
396
460
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
397
461
|
|
|
@@ -469,6 +533,26 @@ module Google
|
|
|
469
533
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Retail::V2::Control>]
|
|
470
534
|
#
|
|
471
535
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
536
|
+
#
|
|
537
|
+
# @example Basic example
|
|
538
|
+
# require "google/cloud/retail/v2"
|
|
539
|
+
#
|
|
540
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
541
|
+
# client = Google::Cloud::Retail::V2::ControlService::Rest::Client.new
|
|
542
|
+
#
|
|
543
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
544
|
+
# request = Google::Cloud::Retail::V2::ListControlsRequest.new
|
|
545
|
+
#
|
|
546
|
+
# # Call the list_controls method.
|
|
547
|
+
# result = client.list_controls request
|
|
548
|
+
#
|
|
549
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
550
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
551
|
+
# result.each do |item|
|
|
552
|
+
# # Each element is of type ::Google::Cloud::Retail::V2::Control.
|
|
553
|
+
# p item
|
|
554
|
+
# end
|
|
555
|
+
#
|
|
472
556
|
def list_controls request, options = nil
|
|
473
557
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
474
558
|
|
|
@@ -578,7 +662,9 @@ module Google
|
|
|
578
662
|
class Configuration
|
|
579
663
|
extend ::Gapic::Config
|
|
580
664
|
|
|
581
|
-
|
|
665
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
666
|
+
|
|
667
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
582
668
|
config_attr :credentials, nil do |value|
|
|
583
669
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
584
670
|
allowed.any? { |klass| klass === value }
|
|
@@ -59,7 +59,7 @@ module Google
|
|
|
59
59
|
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_control_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_delete_control_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_control_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_get_control_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_controls_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
|
|
@@ -140,7 +140,7 @@ module Google
|
|
|
140
140
|
credentials = @config.credentials
|
|
141
141
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
142
142
|
# but only if the default endpoint does not have a region prefix.
|
|
143
|
-
enable_self_signed_jwt = @config.endpoint ==
|
|
143
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
144
144
|
!@config.endpoint.split(".").first.include?("-")
|
|
145
145
|
credentials ||= Credentials.default scope: @config.scope,
|
|
146
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
@@ -167,7 +167,8 @@ module Google
|
|
|
167
167
|
credentials: credentials,
|
|
168
168
|
endpoint: @config.endpoint,
|
|
169
169
|
channel_args: @config.channel_args,
|
|
170
|
-
interceptors: @config.interceptors
|
|
170
|
+
interceptors: @config.interceptors,
|
|
171
|
+
channel_pool_config: @config.channel_pool
|
|
171
172
|
)
|
|
172
173
|
end
|
|
173
174
|
|
|
@@ -1001,7 +1002,9 @@ module Google
|
|
|
1001
1002
|
class Configuration
|
|
1002
1003
|
extend ::Gapic::Config
|
|
1003
1004
|
|
|
1004
|
-
|
|
1005
|
+
DEFAULT_ENDPOINT = "retail.googleapis.com"
|
|
1006
|
+
|
|
1007
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
|
1005
1008
|
config_attr :credentials, nil do |value|
|
|
1006
1009
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1007
1010
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -1036,6 +1039,14 @@ module Google
|
|
|
1036
1039
|
end
|
|
1037
1040
|
end
|
|
1038
1041
|
|
|
1042
|
+
##
|
|
1043
|
+
# Configuration for the channel pool
|
|
1044
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
|
1045
|
+
#
|
|
1046
|
+
def channel_pool
|
|
1047
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
|
1048
|
+
end
|
|
1049
|
+
|
|
1039
1050
|
##
|
|
1040
1051
|
# Configuration RPC class for the ModelService API.
|
|
1041
1052
|
#
|
|
@@ -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 = "retail.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
|
#
|