google-cloud-retail-v2 0.16.1 → 0.17.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/retail/v2/catalog_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/catalog_service/rest/client.rb +180 -0
- data/lib/google/cloud/retail/v2/completion_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/completion_service/operations.rb +10 -1
- data/lib/google/cloud/retail/v2/completion_service/rest/client.rb +39 -0
- data/lib/google/cloud/retail/v2/completion_service/rest/operations.rb +75 -0
- data/lib/google/cloud/retail/v2/control_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/control_service/rest/client.rb +84 -0
- data/lib/google/cloud/retail/v2/model_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/model_service/operations.rb +10 -1
- data/lib/google/cloud/retail/v2/model_service/rest/client.rb +146 -0
- data/lib/google/cloud/retail/v2/model_service/rest/operations.rb +75 -0
- data/lib/google/cloud/retail/v2/prediction_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/prediction_service/rest/client.rb +16 -0
- data/lib/google/cloud/retail/v2/product_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/product_service/operations.rb +10 -1
- data/lib/google/cloud/retail/v2/product_service/rest/client.rb +222 -0
- data/lib/google/cloud/retail/v2/product_service/rest/operations.rb +75 -0
- data/lib/google/cloud/retail/v2/search_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/search_service/rest/client.rb +20 -0
- data/lib/google/cloud/retail/v2/serving_config_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/serving_config_service/rest/client.rb +116 -0
- data/lib/google/cloud/retail/v2/user_event_service/client.rb +10 -1
- data/lib/google/cloud/retail/v2/user_event_service/operations.rb +10 -1
- data/lib/google/cloud/retail/v2/user_event_service/rest/client.rb +101 -0
- data/lib/google/cloud/retail/v2/user_event_service/rest/operations.rb +75 -0
- data/lib/google/cloud/retail/v2/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: c211723334dc32507a15c553160e52732b9dee5f92878a89541eb4316bfd714d
|
4
|
+
data.tar.gz: f6d10e7a1efc8d2c72e40adcf5b2290825e37f2d8f7ad39a996d318014e748dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6bce0c6e330533283a462f1ea4cc07d6ec1a359654a9a03db2f59607adb2cb72a308508384f367e9d08b1b2cbd30c623841c06e572bc4939c543c5d3e41fa2b6
|
7
|
+
data.tar.gz: a98c098417c105c885a7942bcb8d1cc26224a3ebfa1bb02234e18cafbfdf7e650f7a24e49c35cba89b009644cbb7d14d814c80dc1d1d0c1526d4f417e2ac1718
|
@@ -150,7 +150,8 @@ module Google
|
|
150
150
|
credentials: credentials,
|
151
151
|
endpoint: @config.endpoint,
|
152
152
|
channel_args: @config.channel_args,
|
153
|
-
interceptors: @config.interceptors
|
153
|
+
interceptors: @config.interceptors,
|
154
|
+
channel_pool_config: @config.channel_pool
|
154
155
|
)
|
155
156
|
end
|
156
157
|
|
@@ -1388,6 +1389,14 @@ module Google
|
|
1388
1389
|
end
|
1389
1390
|
end
|
1390
1391
|
|
1392
|
+
##
|
1393
|
+
# Configuration for the channel pool
|
1394
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
1395
|
+
#
|
1396
|
+
def channel_pool
|
1397
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
1398
|
+
end
|
1399
|
+
|
1391
1400
|
##
|
1392
1401
|
# Configuration RPC class for the CatalogService API.
|
1393
1402
|
#
|
@@ -204,6 +204,26 @@ module Google
|
|
204
204
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Retail::V2::Catalog>]
|
205
205
|
#
|
206
206
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
207
|
+
#
|
208
|
+
# @example Basic example
|
209
|
+
# require "google/cloud/retail/v2"
|
210
|
+
#
|
211
|
+
# # Create a client object. The client can be reused for multiple calls.
|
212
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
213
|
+
#
|
214
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
215
|
+
# request = Google::Cloud::Retail::V2::ListCatalogsRequest.new
|
216
|
+
#
|
217
|
+
# # Call the list_catalogs method.
|
218
|
+
# result = client.list_catalogs request
|
219
|
+
#
|
220
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
221
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
222
|
+
# result.each do |item|
|
223
|
+
# # Each element is of type ::Google::Cloud::Retail::V2::Catalog.
|
224
|
+
# p item
|
225
|
+
# end
|
226
|
+
#
|
207
227
|
def list_catalogs request, options = nil
|
208
228
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
209
229
|
|
@@ -280,6 +300,22 @@ module Google
|
|
280
300
|
# @return [::Google::Cloud::Retail::V2::Catalog]
|
281
301
|
#
|
282
302
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
303
|
+
#
|
304
|
+
# @example Basic example
|
305
|
+
# require "google/cloud/retail/v2"
|
306
|
+
#
|
307
|
+
# # Create a client object. The client can be reused for multiple calls.
|
308
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
309
|
+
#
|
310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
311
|
+
# request = Google::Cloud::Retail::V2::UpdateCatalogRequest.new
|
312
|
+
#
|
313
|
+
# # Call the update_catalog method.
|
314
|
+
# result = client.update_catalog request
|
315
|
+
#
|
316
|
+
# # The returned object is of type Google::Cloud::Retail::V2::Catalog.
|
317
|
+
# p result
|
318
|
+
#
|
283
319
|
def update_catalog request, options = nil
|
284
320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
285
321
|
|
@@ -395,6 +431,22 @@ module Google
|
|
395
431
|
# @return [::Google::Protobuf::Empty]
|
396
432
|
#
|
397
433
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
434
|
+
#
|
435
|
+
# @example Basic example
|
436
|
+
# require "google/cloud/retail/v2"
|
437
|
+
#
|
438
|
+
# # Create a client object. The client can be reused for multiple calls.
|
439
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
440
|
+
#
|
441
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
442
|
+
# request = Google::Cloud::Retail::V2::SetDefaultBranchRequest.new
|
443
|
+
#
|
444
|
+
# # Call the set_default_branch method.
|
445
|
+
# result = client.set_default_branch request
|
446
|
+
#
|
447
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
448
|
+
# p result
|
449
|
+
#
|
398
450
|
def set_default_branch request, options = nil
|
399
451
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
400
452
|
|
@@ -460,6 +512,22 @@ module Google
|
|
460
512
|
# @return [::Google::Cloud::Retail::V2::GetDefaultBranchResponse]
|
461
513
|
#
|
462
514
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
515
|
+
#
|
516
|
+
# @example Basic example
|
517
|
+
# require "google/cloud/retail/v2"
|
518
|
+
#
|
519
|
+
# # Create a client object. The client can be reused for multiple calls.
|
520
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
521
|
+
#
|
522
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
523
|
+
# request = Google::Cloud::Retail::V2::GetDefaultBranchRequest.new
|
524
|
+
#
|
525
|
+
# # Call the get_default_branch method.
|
526
|
+
# result = client.get_default_branch request
|
527
|
+
#
|
528
|
+
# # The returned object is of type Google::Cloud::Retail::V2::GetDefaultBranchResponse.
|
529
|
+
# p result
|
530
|
+
#
|
463
531
|
def get_default_branch request, options = nil
|
464
532
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
465
533
|
|
@@ -523,6 +591,22 @@ module Google
|
|
523
591
|
# @return [::Google::Cloud::Retail::V2::CompletionConfig]
|
524
592
|
#
|
525
593
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
594
|
+
#
|
595
|
+
# @example Basic example
|
596
|
+
# require "google/cloud/retail/v2"
|
597
|
+
#
|
598
|
+
# # Create a client object. The client can be reused for multiple calls.
|
599
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
600
|
+
#
|
601
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
602
|
+
# request = Google::Cloud::Retail::V2::GetCompletionConfigRequest.new
|
603
|
+
#
|
604
|
+
# # Call the get_completion_config method.
|
605
|
+
# result = client.get_completion_config request
|
606
|
+
#
|
607
|
+
# # The returned object is of type Google::Cloud::Retail::V2::CompletionConfig.
|
608
|
+
# p result
|
609
|
+
#
|
526
610
|
def get_completion_config request, options = nil
|
527
611
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
528
612
|
|
@@ -604,6 +688,22 @@ module Google
|
|
604
688
|
# @return [::Google::Cloud::Retail::V2::CompletionConfig]
|
605
689
|
#
|
606
690
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
691
|
+
#
|
692
|
+
# @example Basic example
|
693
|
+
# require "google/cloud/retail/v2"
|
694
|
+
#
|
695
|
+
# # Create a client object. The client can be reused for multiple calls.
|
696
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
697
|
+
#
|
698
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
699
|
+
# request = Google::Cloud::Retail::V2::UpdateCompletionConfigRequest.new
|
700
|
+
#
|
701
|
+
# # Call the update_completion_config method.
|
702
|
+
# result = client.update_completion_config request
|
703
|
+
#
|
704
|
+
# # The returned object is of type Google::Cloud::Retail::V2::CompletionConfig.
|
705
|
+
# p result
|
706
|
+
#
|
607
707
|
def update_completion_config request, options = nil
|
608
708
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
609
709
|
|
@@ -667,6 +767,22 @@ module Google
|
|
667
767
|
# @return [::Google::Cloud::Retail::V2::AttributesConfig]
|
668
768
|
#
|
669
769
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
770
|
+
#
|
771
|
+
# @example Basic example
|
772
|
+
# require "google/cloud/retail/v2"
|
773
|
+
#
|
774
|
+
# # Create a client object. The client can be reused for multiple calls.
|
775
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
776
|
+
#
|
777
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
778
|
+
# request = Google::Cloud::Retail::V2::GetAttributesConfigRequest.new
|
779
|
+
#
|
780
|
+
# # Call the get_attributes_config method.
|
781
|
+
# result = client.get_attributes_config request
|
782
|
+
#
|
783
|
+
# # The returned object is of type Google::Cloud::Retail::V2::AttributesConfig.
|
784
|
+
# p result
|
785
|
+
#
|
670
786
|
def get_attributes_config request, options = nil
|
671
787
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
672
788
|
|
@@ -745,6 +861,22 @@ module Google
|
|
745
861
|
# @return [::Google::Cloud::Retail::V2::AttributesConfig]
|
746
862
|
#
|
747
863
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
864
|
+
#
|
865
|
+
# @example Basic example
|
866
|
+
# require "google/cloud/retail/v2"
|
867
|
+
#
|
868
|
+
# # Create a client object. The client can be reused for multiple calls.
|
869
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
870
|
+
#
|
871
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
872
|
+
# request = Google::Cloud::Retail::V2::UpdateAttributesConfigRequest.new
|
873
|
+
#
|
874
|
+
# # Call the update_attributes_config method.
|
875
|
+
# result = client.update_attributes_config request
|
876
|
+
#
|
877
|
+
# # The returned object is of type Google::Cloud::Retail::V2::AttributesConfig.
|
878
|
+
# p result
|
879
|
+
#
|
748
880
|
def update_attributes_config request, options = nil
|
749
881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
750
882
|
|
@@ -816,6 +948,22 @@ module Google
|
|
816
948
|
# @return [::Google::Cloud::Retail::V2::AttributesConfig]
|
817
949
|
#
|
818
950
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
951
|
+
#
|
952
|
+
# @example Basic example
|
953
|
+
# require "google/cloud/retail/v2"
|
954
|
+
#
|
955
|
+
# # Create a client object. The client can be reused for multiple calls.
|
956
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
957
|
+
#
|
958
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
959
|
+
# request = Google::Cloud::Retail::V2::AddCatalogAttributeRequest.new
|
960
|
+
#
|
961
|
+
# # Call the add_catalog_attribute method.
|
962
|
+
# result = client.add_catalog_attribute request
|
963
|
+
#
|
964
|
+
# # The returned object is of type Google::Cloud::Retail::V2::AttributesConfig.
|
965
|
+
# p result
|
966
|
+
#
|
819
967
|
def add_catalog_attribute request, options = nil
|
820
968
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
821
969
|
|
@@ -887,6 +1035,22 @@ module Google
|
|
887
1035
|
# @return [::Google::Cloud::Retail::V2::AttributesConfig]
|
888
1036
|
#
|
889
1037
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1038
|
+
#
|
1039
|
+
# @example Basic example
|
1040
|
+
# require "google/cloud/retail/v2"
|
1041
|
+
#
|
1042
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1043
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
1044
|
+
#
|
1045
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1046
|
+
# request = Google::Cloud::Retail::V2::RemoveCatalogAttributeRequest.new
|
1047
|
+
#
|
1048
|
+
# # Call the remove_catalog_attribute method.
|
1049
|
+
# result = client.remove_catalog_attribute request
|
1050
|
+
#
|
1051
|
+
# # The returned object is of type Google::Cloud::Retail::V2::AttributesConfig.
|
1052
|
+
# p result
|
1053
|
+
#
|
890
1054
|
def remove_catalog_attribute request, options = nil
|
891
1055
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
892
1056
|
|
@@ -968,6 +1132,22 @@ module Google
|
|
968
1132
|
# @return [::Google::Cloud::Retail::V2::AttributesConfig]
|
969
1133
|
#
|
970
1134
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1135
|
+
#
|
1136
|
+
# @example Basic example
|
1137
|
+
# require "google/cloud/retail/v2"
|
1138
|
+
#
|
1139
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1140
|
+
# client = Google::Cloud::Retail::V2::CatalogService::Rest::Client.new
|
1141
|
+
#
|
1142
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1143
|
+
# request = Google::Cloud::Retail::V2::ReplaceCatalogAttributeRequest.new
|
1144
|
+
#
|
1145
|
+
# # Call the replace_catalog_attribute method.
|
1146
|
+
# result = client.replace_catalog_attribute request
|
1147
|
+
#
|
1148
|
+
# # The returned object is of type Google::Cloud::Retail::V2::AttributesConfig.
|
1149
|
+
# p result
|
1150
|
+
#
|
971
1151
|
def replace_catalog_attribute request, options = nil
|
972
1152
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
973
1153
|
|
@@ -159,7 +159,8 @@ module Google
|
|
159
159
|
credentials: credentials,
|
160
160
|
endpoint: @config.endpoint,
|
161
161
|
channel_args: @config.channel_args,
|
162
|
-
interceptors: @config.interceptors
|
162
|
+
interceptors: @config.interceptors,
|
163
|
+
channel_pool_config: @config.channel_pool
|
163
164
|
)
|
164
165
|
end
|
165
166
|
|
@@ -567,6 +568,14 @@ module Google
|
|
567
568
|
end
|
568
569
|
end
|
569
570
|
|
571
|
+
##
|
572
|
+
# Configuration for the channel pool
|
573
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
574
|
+
#
|
575
|
+
def channel_pool
|
576
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
577
|
+
end
|
578
|
+
|
570
579
|
##
|
571
580
|
# Configuration RPC class for the CompletionService API.
|
572
581
|
#
|
@@ -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
|
#
|
@@ -270,6 +270,22 @@ module Google
|
|
270
270
|
# @return [::Google::Cloud::Retail::V2::CompleteQueryResponse]
|
271
271
|
#
|
272
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::CompletionService::Rest::Client.new
|
279
|
+
#
|
280
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
281
|
+
# request = Google::Cloud::Retail::V2::CompleteQueryRequest.new
|
282
|
+
#
|
283
|
+
# # Call the complete_query method.
|
284
|
+
# result = client.complete_query request
|
285
|
+
#
|
286
|
+
# # The returned object is of type Google::Cloud::Retail::V2::CompleteQueryResponse.
|
287
|
+
# p result
|
288
|
+
#
|
273
289
|
def complete_query request, options = nil
|
274
290
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
275
291
|
|
@@ -350,6 +366,29 @@ module Google
|
|
350
366
|
# @return [::Gapic::Operation]
|
351
367
|
#
|
352
368
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
369
|
+
#
|
370
|
+
# @example Basic example
|
371
|
+
# require "google/cloud/retail/v2"
|
372
|
+
#
|
373
|
+
# # Create a client object. The client can be reused for multiple calls.
|
374
|
+
# client = Google::Cloud::Retail::V2::CompletionService::Rest::Client.new
|
375
|
+
#
|
376
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
377
|
+
# request = Google::Cloud::Retail::V2::ImportCompletionDataRequest.new
|
378
|
+
#
|
379
|
+
# # Call the import_completion_data method.
|
380
|
+
# result = client.import_completion_data request
|
381
|
+
#
|
382
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
383
|
+
# # check the status of an operation, cancel it, or wait for results.
|
384
|
+
# # Here is how to wait for a response.
|
385
|
+
# result.wait_until_done! timeout: 60
|
386
|
+
# if result.response?
|
387
|
+
# p result.response
|
388
|
+
# else
|
389
|
+
# puts "No response received."
|
390
|
+
# end
|
391
|
+
#
|
353
392
|
def import_completion_data request, options = nil
|
354
393
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
355
394
|
|
@@ -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
|
|
@@ -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
|
|
@@ -752,6 +753,14 @@ module Google
|
|
752
753
|
end
|
753
754
|
end
|
754
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
|
+
|
755
764
|
##
|
756
765
|
# Configuration RPC class for the ControlService API.
|
757
766
|
#
|
@@ -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
|
|
@@ -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
|
|
@@ -1038,6 +1039,14 @@ module Google
|
|
1038
1039
|
end
|
1039
1040
|
end
|
1040
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
|
+
|
1041
1050
|
##
|
1042
1051
|
# Configuration RPC class for the ModelService API.
|
1043
1052
|
#
|