google-cloud-vision-v1p3beta1 0.5.2 → 0.5.3
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/vision/v1p3beta1/image_annotator/client.rb +35 -38
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +30 -21
- data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +83 -54
- data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +30 -21
- data/lib/google/cloud/vision/v1p3beta1/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7357d822394080649b998c533b2a0c7e99e6e788d559ceff3b3e8da96bd5a5a7
|
4
|
+
data.tar.gz: fed3424e4d4e6e548eee6759de4826232f7f8c3de298688862f3e647f2a44322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f3e47dac47529d7b9e1a651ca4a69f307e7a3e654871c9b4511c5f71d333a809113bbc2a60ff6abec6da5c32ed860f8de07caec0ca1a4672093d0fcc8c58051
|
7
|
+
data.tar.gz: f25679de058e000ab3918c9954b5a3535016caa80ea74d53493ac0aa3513b411670af78617f4a9ef501b3d7b8c24f546db413863a26db5bbcae78af53611c691
|
@@ -43,13 +43,12 @@ module Google
|
|
43
43
|
# See {::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client::Configuration}
|
44
44
|
# for a description of the configuration fields.
|
45
45
|
#
|
46
|
-
#
|
46
|
+
# @example
|
47
47
|
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
# end
|
48
|
+
# # Modify the configuration for all ImageAnnotator clients
|
49
|
+
# ::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.configure do |config|
|
50
|
+
# config.timeout = 10.0
|
51
|
+
# end
|
53
52
|
#
|
54
53
|
# @yield [config] Configure the Client client.
|
55
54
|
# @yieldparam config [Client::Configuration]
|
@@ -106,19 +105,15 @@ module Google
|
|
106
105
|
##
|
107
106
|
# Create a new ImageAnnotator client object.
|
108
107
|
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
# To create a new ImageAnnotator client with the default
|
112
|
-
# configuration:
|
113
|
-
#
|
114
|
-
# client = ::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.new
|
108
|
+
# @example
|
115
109
|
#
|
116
|
-
#
|
117
|
-
#
|
110
|
+
# # Create a client using the default configuration
|
111
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.new
|
118
112
|
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
113
|
+
# # Create a client using a custom configuration
|
114
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.new do |config|
|
115
|
+
# config.timeout = 10.0
|
116
|
+
# end
|
122
117
|
#
|
123
118
|
# @yield [config] Configure the ImageAnnotator client.
|
124
119
|
# @yieldparam config [Client::Configuration]
|
@@ -138,10 +133,9 @@ module Google
|
|
138
133
|
|
139
134
|
# Create credentials
|
140
135
|
credentials = @config.credentials
|
141
|
-
# Use self-signed JWT if the
|
136
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
142
137
|
# but only if the default endpoint does not have a region prefix.
|
143
|
-
enable_self_signed_jwt = @config.
|
144
|
-
@config.endpoint == Client.configure.endpoint &&
|
138
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
145
139
|
!@config.endpoint.split(".").first.include?("-")
|
146
140
|
credentials ||= Credentials.default scope: @config.scope,
|
147
141
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -223,7 +217,9 @@ module Google
|
|
223
217
|
options.apply_defaults timeout: @config.rpcs.batch_annotate_images.timeout,
|
224
218
|
metadata: metadata,
|
225
219
|
retry_policy: @config.rpcs.batch_annotate_images.retry_policy
|
226
|
-
|
220
|
+
|
221
|
+
options.apply_defaults timeout: @config.timeout,
|
222
|
+
metadata: @config.metadata,
|
227
223
|
retry_policy: @config.retry_policy
|
228
224
|
|
229
225
|
@image_annotator_stub.call_rpc :batch_annotate_images, request, options: options do |response, operation|
|
@@ -288,7 +284,9 @@ module Google
|
|
288
284
|
options.apply_defaults timeout: @config.rpcs.async_batch_annotate_files.timeout,
|
289
285
|
metadata: metadata,
|
290
286
|
retry_policy: @config.rpcs.async_batch_annotate_files.retry_policy
|
291
|
-
|
287
|
+
|
288
|
+
options.apply_defaults timeout: @config.timeout,
|
289
|
+
metadata: @config.metadata,
|
292
290
|
retry_policy: @config.retry_policy
|
293
291
|
|
294
292
|
@image_annotator_stub.call_rpc :async_batch_annotate_files, request, options: options do |response, operation|
|
@@ -313,22 +311,21 @@ module Google
|
|
313
311
|
# Configuration can be applied globally to all clients, or to a single client
|
314
312
|
# on construction.
|
315
313
|
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
# to 20 seconds,
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
# end
|
314
|
+
# @example
|
315
|
+
#
|
316
|
+
# # Modify the global config, setting the timeout for
|
317
|
+
# # batch_annotate_images to 20 seconds,
|
318
|
+
# # and all remaining timeouts to 10 seconds.
|
319
|
+
# ::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.configure do |config|
|
320
|
+
# config.timeout = 10.0
|
321
|
+
# config.rpcs.batch_annotate_images.timeout = 20.0
|
322
|
+
# end
|
323
|
+
#
|
324
|
+
# # Apply the above configuration only to a new client.
|
325
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.new do |config|
|
326
|
+
# config.timeout = 10.0
|
327
|
+
# config.rpcs.batch_annotate_images.timeout = 20.0
|
328
|
+
# end
|
332
329
|
#
|
333
330
|
# @!attribute [rw] endpoint
|
334
331
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -54,13 +54,12 @@ module Google
|
|
54
54
|
# See {::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client::Configuration}
|
55
55
|
# for a description of the configuration fields.
|
56
56
|
#
|
57
|
-
#
|
57
|
+
# @example
|
58
58
|
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
# end
|
59
|
+
# # Modify the configuration for all ProductSearch clients
|
60
|
+
# ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
|
61
|
+
# config.timeout = 10.0
|
62
|
+
# end
|
64
63
|
#
|
65
64
|
# @yield [config] Configure the Client client.
|
66
65
|
# @yieldparam config [Client::Configuration]
|
@@ -197,19 +196,15 @@ module Google
|
|
197
196
|
##
|
198
197
|
# Create a new ProductSearch client object.
|
199
198
|
#
|
200
|
-
#
|
201
|
-
#
|
202
|
-
# To create a new ProductSearch client with the default
|
203
|
-
# configuration:
|
199
|
+
# @example
|
204
200
|
#
|
205
|
-
#
|
201
|
+
# # Create a client using the default configuration
|
202
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new
|
206
203
|
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
# config.timeout = 10.0
|
212
|
-
# end
|
204
|
+
# # Create a client using a custom configuration
|
205
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
|
206
|
+
# config.timeout = 10.0
|
207
|
+
# end
|
213
208
|
#
|
214
209
|
# @yield [config] Configure the ProductSearch client.
|
215
210
|
# @yieldparam config [Client::Configuration]
|
@@ -229,10 +224,9 @@ module Google
|
|
229
224
|
|
230
225
|
# Create credentials
|
231
226
|
credentials = @config.credentials
|
232
|
-
# Use self-signed JWT if the
|
227
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
233
228
|
# but only if the default endpoint does not have a region prefix.
|
234
|
-
enable_self_signed_jwt = @config.
|
235
|
-
@config.endpoint == Client.configure.endpoint &&
|
229
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
236
230
|
!@config.endpoint.split(".").first.include?("-")
|
237
231
|
credentials ||= Credentials.default scope: @config.scope,
|
238
232
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -334,7 +328,9 @@ module Google
|
|
334
328
|
options.apply_defaults timeout: @config.rpcs.create_product_set.timeout,
|
335
329
|
metadata: metadata,
|
336
330
|
retry_policy: @config.rpcs.create_product_set.retry_policy
|
337
|
-
|
331
|
+
|
332
|
+
options.apply_defaults timeout: @config.timeout,
|
333
|
+
metadata: @config.metadata,
|
338
334
|
retry_policy: @config.retry_policy
|
339
335
|
|
340
336
|
@product_search_stub.call_rpc :create_product_set, request, options: options do |response, operation|
|
@@ -411,7 +407,9 @@ module Google
|
|
411
407
|
options.apply_defaults timeout: @config.rpcs.list_product_sets.timeout,
|
412
408
|
metadata: metadata,
|
413
409
|
retry_policy: @config.rpcs.list_product_sets.retry_policy
|
414
|
-
|
410
|
+
|
411
|
+
options.apply_defaults timeout: @config.timeout,
|
412
|
+
metadata: @config.metadata,
|
415
413
|
retry_policy: @config.retry_policy
|
416
414
|
|
417
415
|
@product_search_stub.call_rpc :list_product_sets, request, options: options do |response, operation|
|
@@ -485,7 +483,9 @@ module Google
|
|
485
483
|
options.apply_defaults timeout: @config.rpcs.get_product_set.timeout,
|
486
484
|
metadata: metadata,
|
487
485
|
retry_policy: @config.rpcs.get_product_set.retry_policy
|
488
|
-
|
486
|
+
|
487
|
+
options.apply_defaults timeout: @config.timeout,
|
488
|
+
metadata: @config.metadata,
|
489
489
|
retry_policy: @config.retry_policy
|
490
490
|
|
491
491
|
@product_search_stub.call_rpc :get_product_set, request, options: options do |response, operation|
|
@@ -563,7 +563,9 @@ module Google
|
|
563
563
|
options.apply_defaults timeout: @config.rpcs.update_product_set.timeout,
|
564
564
|
metadata: metadata,
|
565
565
|
retry_policy: @config.rpcs.update_product_set.retry_policy
|
566
|
-
|
566
|
+
|
567
|
+
options.apply_defaults timeout: @config.timeout,
|
568
|
+
metadata: @config.metadata,
|
567
569
|
retry_policy: @config.retry_policy
|
568
570
|
|
569
571
|
@product_search_stub.call_rpc :update_product_set, request, options: options do |response, operation|
|
@@ -639,7 +641,9 @@ module Google
|
|
639
641
|
options.apply_defaults timeout: @config.rpcs.delete_product_set.timeout,
|
640
642
|
metadata: metadata,
|
641
643
|
retry_policy: @config.rpcs.delete_product_set.retry_policy
|
642
|
-
|
644
|
+
|
645
|
+
options.apply_defaults timeout: @config.timeout,
|
646
|
+
metadata: @config.metadata,
|
643
647
|
retry_policy: @config.retry_policy
|
644
648
|
|
645
649
|
@product_search_stub.call_rpc :delete_product_set, request, options: options do |response, operation|
|
@@ -722,7 +726,9 @@ module Google
|
|
722
726
|
options.apply_defaults timeout: @config.rpcs.create_product.timeout,
|
723
727
|
metadata: metadata,
|
724
728
|
retry_policy: @config.rpcs.create_product.retry_policy
|
725
|
-
|
729
|
+
|
730
|
+
options.apply_defaults timeout: @config.timeout,
|
731
|
+
metadata: @config.metadata,
|
726
732
|
retry_policy: @config.retry_policy
|
727
733
|
|
728
734
|
@product_search_stub.call_rpc :create_product, request, options: options do |response, operation|
|
@@ -799,7 +805,9 @@ module Google
|
|
799
805
|
options.apply_defaults timeout: @config.rpcs.list_products.timeout,
|
800
806
|
metadata: metadata,
|
801
807
|
retry_policy: @config.rpcs.list_products.retry_policy
|
802
|
-
|
808
|
+
|
809
|
+
options.apply_defaults timeout: @config.timeout,
|
810
|
+
metadata: @config.metadata,
|
803
811
|
retry_policy: @config.retry_policy
|
804
812
|
|
805
813
|
@product_search_stub.call_rpc :list_products, request, options: options do |response, operation|
|
@@ -873,7 +881,9 @@ module Google
|
|
873
881
|
options.apply_defaults timeout: @config.rpcs.get_product.timeout,
|
874
882
|
metadata: metadata,
|
875
883
|
retry_policy: @config.rpcs.get_product.retry_policy
|
876
|
-
|
884
|
+
|
885
|
+
options.apply_defaults timeout: @config.timeout,
|
886
|
+
metadata: @config.metadata,
|
877
887
|
retry_policy: @config.retry_policy
|
878
888
|
|
879
889
|
@product_search_stub.call_rpc :get_product, request, options: options do |response, operation|
|
@@ -959,7 +969,9 @@ module Google
|
|
959
969
|
options.apply_defaults timeout: @config.rpcs.update_product.timeout,
|
960
970
|
metadata: metadata,
|
961
971
|
retry_policy: @config.rpcs.update_product.retry_policy
|
962
|
-
|
972
|
+
|
973
|
+
options.apply_defaults timeout: @config.timeout,
|
974
|
+
metadata: @config.metadata,
|
963
975
|
retry_policy: @config.retry_policy
|
964
976
|
|
965
977
|
@product_search_stub.call_rpc :update_product, request, options: options do |response, operation|
|
@@ -1036,7 +1048,9 @@ module Google
|
|
1036
1048
|
options.apply_defaults timeout: @config.rpcs.delete_product.timeout,
|
1037
1049
|
metadata: metadata,
|
1038
1050
|
retry_policy: @config.rpcs.delete_product.retry_policy
|
1039
|
-
|
1051
|
+
|
1052
|
+
options.apply_defaults timeout: @config.timeout,
|
1053
|
+
metadata: @config.metadata,
|
1040
1054
|
retry_policy: @config.retry_policy
|
1041
1055
|
|
1042
1056
|
@product_search_stub.call_rpc :delete_product, request, options: options do |response, operation|
|
@@ -1131,7 +1145,9 @@ module Google
|
|
1131
1145
|
options.apply_defaults timeout: @config.rpcs.create_reference_image.timeout,
|
1132
1146
|
metadata: metadata,
|
1133
1147
|
retry_policy: @config.rpcs.create_reference_image.retry_policy
|
1134
|
-
|
1148
|
+
|
1149
|
+
options.apply_defaults timeout: @config.timeout,
|
1150
|
+
metadata: @config.metadata,
|
1135
1151
|
retry_policy: @config.retry_policy
|
1136
1152
|
|
1137
1153
|
@product_search_stub.call_rpc :create_reference_image, request, options: options do |response, operation|
|
@@ -1211,7 +1227,9 @@ module Google
|
|
1211
1227
|
options.apply_defaults timeout: @config.rpcs.delete_reference_image.timeout,
|
1212
1228
|
metadata: metadata,
|
1213
1229
|
retry_policy: @config.rpcs.delete_reference_image.retry_policy
|
1214
|
-
|
1230
|
+
|
1231
|
+
options.apply_defaults timeout: @config.timeout,
|
1232
|
+
metadata: @config.metadata,
|
1215
1233
|
retry_policy: @config.retry_policy
|
1216
1234
|
|
1217
1235
|
@product_search_stub.call_rpc :delete_reference_image, request, options: options do |response, operation|
|
@@ -1293,7 +1311,9 @@ module Google
|
|
1293
1311
|
options.apply_defaults timeout: @config.rpcs.list_reference_images.timeout,
|
1294
1312
|
metadata: metadata,
|
1295
1313
|
retry_policy: @config.rpcs.list_reference_images.retry_policy
|
1296
|
-
|
1314
|
+
|
1315
|
+
options.apply_defaults timeout: @config.timeout,
|
1316
|
+
metadata: @config.metadata,
|
1297
1317
|
retry_policy: @config.retry_policy
|
1298
1318
|
|
1299
1319
|
@product_search_stub.call_rpc :list_reference_images, request, options: options do |response, operation|
|
@@ -1368,7 +1388,9 @@ module Google
|
|
1368
1388
|
options.apply_defaults timeout: @config.rpcs.get_reference_image.timeout,
|
1369
1389
|
metadata: metadata,
|
1370
1390
|
retry_policy: @config.rpcs.get_reference_image.retry_policy
|
1371
|
-
|
1391
|
+
|
1392
|
+
options.apply_defaults timeout: @config.timeout,
|
1393
|
+
metadata: @config.metadata,
|
1372
1394
|
retry_policy: @config.retry_policy
|
1373
1395
|
|
1374
1396
|
@product_search_stub.call_rpc :get_reference_image, request, options: options do |response, operation|
|
@@ -1449,7 +1471,9 @@ module Google
|
|
1449
1471
|
options.apply_defaults timeout: @config.rpcs.add_product_to_product_set.timeout,
|
1450
1472
|
metadata: metadata,
|
1451
1473
|
retry_policy: @config.rpcs.add_product_to_product_set.retry_policy
|
1452
|
-
|
1474
|
+
|
1475
|
+
options.apply_defaults timeout: @config.timeout,
|
1476
|
+
metadata: @config.metadata,
|
1453
1477
|
retry_policy: @config.retry_policy
|
1454
1478
|
|
1455
1479
|
@product_search_stub.call_rpc :add_product_to_product_set, request, options: options do |response, operation|
|
@@ -1527,7 +1551,9 @@ module Google
|
|
1527
1551
|
options.apply_defaults timeout: @config.rpcs.remove_product_from_product_set.timeout,
|
1528
1552
|
metadata: metadata,
|
1529
1553
|
retry_policy: @config.rpcs.remove_product_from_product_set.retry_policy
|
1530
|
-
|
1554
|
+
|
1555
|
+
options.apply_defaults timeout: @config.timeout,
|
1556
|
+
metadata: @config.metadata,
|
1531
1557
|
retry_policy: @config.retry_policy
|
1532
1558
|
|
1533
1559
|
@product_search_stub.call_rpc :remove_product_from_product_set, request, options: options do |response, operation|
|
@@ -1606,7 +1632,9 @@ module Google
|
|
1606
1632
|
options.apply_defaults timeout: @config.rpcs.list_products_in_product_set.timeout,
|
1607
1633
|
metadata: metadata,
|
1608
1634
|
retry_policy: @config.rpcs.list_products_in_product_set.retry_policy
|
1609
|
-
|
1635
|
+
|
1636
|
+
options.apply_defaults timeout: @config.timeout,
|
1637
|
+
metadata: @config.metadata,
|
1610
1638
|
retry_policy: @config.retry_policy
|
1611
1639
|
|
1612
1640
|
@product_search_stub.call_rpc :list_products_in_product_set, request, options: options do |response, operation|
|
@@ -1687,7 +1715,9 @@ module Google
|
|
1687
1715
|
options.apply_defaults timeout: @config.rpcs.import_product_sets.timeout,
|
1688
1716
|
metadata: metadata,
|
1689
1717
|
retry_policy: @config.rpcs.import_product_sets.retry_policy
|
1690
|
-
|
1718
|
+
|
1719
|
+
options.apply_defaults timeout: @config.timeout,
|
1720
|
+
metadata: @config.metadata,
|
1691
1721
|
retry_policy: @config.retry_policy
|
1692
1722
|
|
1693
1723
|
@product_search_stub.call_rpc :import_product_sets, request, options: options do |response, operation|
|
@@ -1712,22 +1742,21 @@ module Google
|
|
1712
1742
|
# Configuration can be applied globally to all clients, or to a single client
|
1713
1743
|
# on construction.
|
1714
1744
|
#
|
1715
|
-
#
|
1716
|
-
#
|
1717
|
-
#
|
1718
|
-
# to 20 seconds,
|
1719
|
-
#
|
1720
|
-
#
|
1721
|
-
#
|
1722
|
-
#
|
1723
|
-
#
|
1724
|
-
#
|
1725
|
-
#
|
1726
|
-
#
|
1727
|
-
#
|
1728
|
-
#
|
1729
|
-
#
|
1730
|
-
# end
|
1745
|
+
# @example
|
1746
|
+
#
|
1747
|
+
# # Modify the global config, setting the timeout for
|
1748
|
+
# # create_product_set to 20 seconds,
|
1749
|
+
# # and all remaining timeouts to 10 seconds.
|
1750
|
+
# ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.configure do |config|
|
1751
|
+
# config.timeout = 10.0
|
1752
|
+
# config.rpcs.create_product_set.timeout = 20.0
|
1753
|
+
# end
|
1754
|
+
#
|
1755
|
+
# # Apply the above configuration only to a new client.
|
1756
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
|
1757
|
+
# config.timeout = 10.0
|
1758
|
+
# config.rpcs.create_product_set.timeout = 20.0
|
1759
|
+
# end
|
1731
1760
|
#
|
1732
1761
|
# @!attribute [rw] endpoint
|
1733
1762
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-vision-v1p3beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|