google-cloud-automl-v1beta1 0.5.2 → 0.5.3
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/automl/v1beta1/automl/client.rb +101 -60
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +30 -21
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +35 -38
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +30 -21
- data/lib/google/cloud/automl/v1beta1/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: a74c4cb09f4e9f22d044c6d60888b9a6b81e0d5aa85f2f7efaa8ef48865f3e93
|
4
|
+
data.tar.gz: c001925e11f5a6aaee92fb06d47b0bc28b7a45b54725fddb4f57c8fe4e331bb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8474db22785f099ae678398c6f161a3a528aaee8da361adb2188b4dabeb026d487dc576319762b29006475cef84b510cfadaeac4e8f435646be5433cbaf887
|
7
|
+
data.tar.gz: f0bd1e7f7dd3f02defbc91a6228bfa12fc5616fb12ac1fc06cd2e6bf1742596bd2bd97477bbbae352d7adf510325623ffa511411efbafebe12e9e2b95b0171cf
|
@@ -54,13 +54,12 @@ module Google
|
|
54
54
|
# See {::Google::Cloud::AutoML::V1beta1::AutoML::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 AutoMl clients
|
60
|
+
# ::Google::Cloud::AutoML::V1beta1::AutoML::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]
|
@@ -191,19 +190,15 @@ module Google
|
|
191
190
|
##
|
192
191
|
# Create a new AutoMl client object.
|
193
192
|
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
# To create a new AutoMl client with the default
|
197
|
-
# configuration:
|
193
|
+
# @example
|
198
194
|
#
|
199
|
-
#
|
195
|
+
# # Create a client using the default configuration
|
196
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
200
197
|
#
|
201
|
-
#
|
202
|
-
#
|
203
|
-
#
|
204
|
-
#
|
205
|
-
# config.timeout = 10.0
|
206
|
-
# end
|
198
|
+
# # Create a client using a custom configuration
|
199
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
200
|
+
# config.timeout = 10.0
|
201
|
+
# end
|
207
202
|
#
|
208
203
|
# @yield [config] Configure the AutoMl client.
|
209
204
|
# @yieldparam config [Client::Configuration]
|
@@ -223,10 +218,9 @@ module Google
|
|
223
218
|
|
224
219
|
# Create credentials
|
225
220
|
credentials = @config.credentials
|
226
|
-
# Use self-signed JWT if the
|
221
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
227
222
|
# but only if the default endpoint does not have a region prefix.
|
228
|
-
enable_self_signed_jwt = @config.
|
229
|
-
@config.endpoint == Client.configure.endpoint &&
|
223
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
230
224
|
!@config.endpoint.split(".").first.include?("-")
|
231
225
|
credentials ||= Credentials.default scope: @config.scope,
|
232
226
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -316,7 +310,9 @@ module Google
|
|
316
310
|
options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
|
317
311
|
metadata: metadata,
|
318
312
|
retry_policy: @config.rpcs.create_dataset.retry_policy
|
319
|
-
|
313
|
+
|
314
|
+
options.apply_defaults timeout: @config.timeout,
|
315
|
+
metadata: @config.metadata,
|
320
316
|
retry_policy: @config.retry_policy
|
321
317
|
|
322
318
|
@auto_ml_stub.call_rpc :create_dataset, request, options: options do |response, operation|
|
@@ -382,7 +378,9 @@ module Google
|
|
382
378
|
options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
|
383
379
|
metadata: metadata,
|
384
380
|
retry_policy: @config.rpcs.get_dataset.retry_policy
|
385
|
-
|
381
|
+
|
382
|
+
options.apply_defaults timeout: @config.timeout,
|
383
|
+
metadata: @config.metadata,
|
386
384
|
retry_policy: @config.retry_policy
|
387
385
|
|
388
386
|
@auto_ml_stub.call_rpc :get_dataset, request, options: options do |response, operation|
|
@@ -464,7 +462,9 @@ module Google
|
|
464
462
|
options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
|
465
463
|
metadata: metadata,
|
466
464
|
retry_policy: @config.rpcs.list_datasets.retry_policy
|
467
|
-
|
465
|
+
|
466
|
+
options.apply_defaults timeout: @config.timeout,
|
467
|
+
metadata: @config.metadata,
|
468
468
|
retry_policy: @config.retry_policy
|
469
469
|
|
470
470
|
@auto_ml_stub.call_rpc :list_datasets, request, options: options do |response, operation|
|
@@ -533,7 +533,9 @@ module Google
|
|
533
533
|
options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
|
534
534
|
metadata: metadata,
|
535
535
|
retry_policy: @config.rpcs.update_dataset.retry_policy
|
536
|
-
|
536
|
+
|
537
|
+
options.apply_defaults timeout: @config.timeout,
|
538
|
+
metadata: @config.metadata,
|
537
539
|
retry_policy: @config.retry_policy
|
538
540
|
|
539
541
|
@auto_ml_stub.call_rpc :update_dataset, request, options: options do |response, operation|
|
@@ -603,7 +605,9 @@ module Google
|
|
603
605
|
options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
|
604
606
|
metadata: metadata,
|
605
607
|
retry_policy: @config.rpcs.delete_dataset.retry_policy
|
606
|
-
|
608
|
+
|
609
|
+
options.apply_defaults timeout: @config.timeout,
|
610
|
+
metadata: @config.metadata,
|
607
611
|
retry_policy: @config.retry_policy
|
608
612
|
|
609
613
|
@auto_ml_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
|
@@ -682,7 +686,9 @@ module Google
|
|
682
686
|
options.apply_defaults timeout: @config.rpcs.import_data.timeout,
|
683
687
|
metadata: metadata,
|
684
688
|
retry_policy: @config.rpcs.import_data.retry_policy
|
685
|
-
|
689
|
+
|
690
|
+
options.apply_defaults timeout: @config.timeout,
|
691
|
+
metadata: @config.metadata,
|
686
692
|
retry_policy: @config.retry_policy
|
687
693
|
|
688
694
|
@auto_ml_stub.call_rpc :import_data, request, options: options do |response, operation|
|
@@ -753,7 +759,9 @@ module Google
|
|
753
759
|
options.apply_defaults timeout: @config.rpcs.export_data.timeout,
|
754
760
|
metadata: metadata,
|
755
761
|
retry_policy: @config.rpcs.export_data.retry_policy
|
756
|
-
|
762
|
+
|
763
|
+
options.apply_defaults timeout: @config.timeout,
|
764
|
+
metadata: @config.metadata,
|
757
765
|
retry_policy: @config.retry_policy
|
758
766
|
|
759
767
|
@auto_ml_stub.call_rpc :export_data, request, options: options do |response, operation|
|
@@ -820,7 +828,9 @@ module Google
|
|
820
828
|
options.apply_defaults timeout: @config.rpcs.get_annotation_spec.timeout,
|
821
829
|
metadata: metadata,
|
822
830
|
retry_policy: @config.rpcs.get_annotation_spec.retry_policy
|
823
|
-
|
831
|
+
|
832
|
+
options.apply_defaults timeout: @config.timeout,
|
833
|
+
metadata: @config.metadata,
|
824
834
|
retry_policy: @config.retry_policy
|
825
835
|
|
826
836
|
@auto_ml_stub.call_rpc :get_annotation_spec, request, options: options do |response, operation|
|
@@ -888,7 +898,9 @@ module Google
|
|
888
898
|
options.apply_defaults timeout: @config.rpcs.get_table_spec.timeout,
|
889
899
|
metadata: metadata,
|
890
900
|
retry_policy: @config.rpcs.get_table_spec.retry_policy
|
891
|
-
|
901
|
+
|
902
|
+
options.apply_defaults timeout: @config.timeout,
|
903
|
+
metadata: @config.metadata,
|
892
904
|
retry_policy: @config.retry_policy
|
893
905
|
|
894
906
|
@auto_ml_stub.call_rpc :get_table_spec, request, options: options do |response, operation|
|
@@ -966,7 +978,9 @@ module Google
|
|
966
978
|
options.apply_defaults timeout: @config.rpcs.list_table_specs.timeout,
|
967
979
|
metadata: metadata,
|
968
980
|
retry_policy: @config.rpcs.list_table_specs.retry_policy
|
969
|
-
|
981
|
+
|
982
|
+
options.apply_defaults timeout: @config.timeout,
|
983
|
+
metadata: @config.metadata,
|
970
984
|
retry_policy: @config.retry_policy
|
971
985
|
|
972
986
|
@auto_ml_stub.call_rpc :list_table_specs, request, options: options do |response, operation|
|
@@ -1035,7 +1049,9 @@ module Google
|
|
1035
1049
|
options.apply_defaults timeout: @config.rpcs.update_table_spec.timeout,
|
1036
1050
|
metadata: metadata,
|
1037
1051
|
retry_policy: @config.rpcs.update_table_spec.retry_policy
|
1038
|
-
|
1052
|
+
|
1053
|
+
options.apply_defaults timeout: @config.timeout,
|
1054
|
+
metadata: @config.metadata,
|
1039
1055
|
retry_policy: @config.retry_policy
|
1040
1056
|
|
1041
1057
|
@auto_ml_stub.call_rpc :update_table_spec, request, options: options do |response, operation|
|
@@ -1103,7 +1119,9 @@ module Google
|
|
1103
1119
|
options.apply_defaults timeout: @config.rpcs.get_column_spec.timeout,
|
1104
1120
|
metadata: metadata,
|
1105
1121
|
retry_policy: @config.rpcs.get_column_spec.retry_policy
|
1106
|
-
|
1122
|
+
|
1123
|
+
options.apply_defaults timeout: @config.timeout,
|
1124
|
+
metadata: @config.metadata,
|
1107
1125
|
retry_policy: @config.retry_policy
|
1108
1126
|
|
1109
1127
|
@auto_ml_stub.call_rpc :get_column_spec, request, options: options do |response, operation|
|
@@ -1181,7 +1199,9 @@ module Google
|
|
1181
1199
|
options.apply_defaults timeout: @config.rpcs.list_column_specs.timeout,
|
1182
1200
|
metadata: metadata,
|
1183
1201
|
retry_policy: @config.rpcs.list_column_specs.retry_policy
|
1184
|
-
|
1202
|
+
|
1203
|
+
options.apply_defaults timeout: @config.timeout,
|
1204
|
+
metadata: @config.metadata,
|
1185
1205
|
retry_policy: @config.retry_policy
|
1186
1206
|
|
1187
1207
|
@auto_ml_stub.call_rpc :list_column_specs, request, options: options do |response, operation|
|
@@ -1250,7 +1270,9 @@ module Google
|
|
1250
1270
|
options.apply_defaults timeout: @config.rpcs.update_column_spec.timeout,
|
1251
1271
|
metadata: metadata,
|
1252
1272
|
retry_policy: @config.rpcs.update_column_spec.retry_policy
|
1253
|
-
|
1273
|
+
|
1274
|
+
options.apply_defaults timeout: @config.timeout,
|
1275
|
+
metadata: @config.metadata,
|
1254
1276
|
retry_policy: @config.retry_policy
|
1255
1277
|
|
1256
1278
|
@auto_ml_stub.call_rpc :update_column_spec, request, options: options do |response, operation|
|
@@ -1322,7 +1344,9 @@ module Google
|
|
1322
1344
|
options.apply_defaults timeout: @config.rpcs.create_model.timeout,
|
1323
1345
|
metadata: metadata,
|
1324
1346
|
retry_policy: @config.rpcs.create_model.retry_policy
|
1325
|
-
|
1347
|
+
|
1348
|
+
options.apply_defaults timeout: @config.timeout,
|
1349
|
+
metadata: @config.metadata,
|
1326
1350
|
retry_policy: @config.retry_policy
|
1327
1351
|
|
1328
1352
|
@auto_ml_stub.call_rpc :create_model, request, options: options do |response, operation|
|
@@ -1389,7 +1413,9 @@ module Google
|
|
1389
1413
|
options.apply_defaults timeout: @config.rpcs.get_model.timeout,
|
1390
1414
|
metadata: metadata,
|
1391
1415
|
retry_policy: @config.rpcs.get_model.retry_policy
|
1392
|
-
|
1416
|
+
|
1417
|
+
options.apply_defaults timeout: @config.timeout,
|
1418
|
+
metadata: @config.metadata,
|
1393
1419
|
retry_policy: @config.retry_policy
|
1394
1420
|
|
1395
1421
|
@auto_ml_stub.call_rpc :get_model, request, options: options do |response, operation|
|
@@ -1472,7 +1498,9 @@ module Google
|
|
1472
1498
|
options.apply_defaults timeout: @config.rpcs.list_models.timeout,
|
1473
1499
|
metadata: metadata,
|
1474
1500
|
retry_policy: @config.rpcs.list_models.retry_policy
|
1475
|
-
|
1501
|
+
|
1502
|
+
options.apply_defaults timeout: @config.timeout,
|
1503
|
+
metadata: @config.metadata,
|
1476
1504
|
retry_policy: @config.retry_policy
|
1477
1505
|
|
1478
1506
|
@auto_ml_stub.call_rpc :list_models, request, options: options do |response, operation|
|
@@ -1543,7 +1571,9 @@ module Google
|
|
1543
1571
|
options.apply_defaults timeout: @config.rpcs.delete_model.timeout,
|
1544
1572
|
metadata: metadata,
|
1545
1573
|
retry_policy: @config.rpcs.delete_model.retry_policy
|
1546
|
-
|
1574
|
+
|
1575
|
+
options.apply_defaults timeout: @config.timeout,
|
1576
|
+
metadata: @config.metadata,
|
1547
1577
|
retry_policy: @config.retry_policy
|
1548
1578
|
|
1549
1579
|
@auto_ml_stub.call_rpc :delete_model, request, options: options do |response, operation|
|
@@ -1625,7 +1655,9 @@ module Google
|
|
1625
1655
|
options.apply_defaults timeout: @config.rpcs.deploy_model.timeout,
|
1626
1656
|
metadata: metadata,
|
1627
1657
|
retry_policy: @config.rpcs.deploy_model.retry_policy
|
1628
|
-
|
1658
|
+
|
1659
|
+
options.apply_defaults timeout: @config.timeout,
|
1660
|
+
metadata: @config.metadata,
|
1629
1661
|
retry_policy: @config.retry_policy
|
1630
1662
|
|
1631
1663
|
@auto_ml_stub.call_rpc :deploy_model, request, options: options do |response, operation|
|
@@ -1698,7 +1730,9 @@ module Google
|
|
1698
1730
|
options.apply_defaults timeout: @config.rpcs.undeploy_model.timeout,
|
1699
1731
|
metadata: metadata,
|
1700
1732
|
retry_policy: @config.rpcs.undeploy_model.retry_policy
|
1701
|
-
|
1733
|
+
|
1734
|
+
options.apply_defaults timeout: @config.timeout,
|
1735
|
+
metadata: @config.metadata,
|
1702
1736
|
retry_policy: @config.retry_policy
|
1703
1737
|
|
1704
1738
|
@auto_ml_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
|
@@ -1774,7 +1808,9 @@ module Google
|
|
1774
1808
|
options.apply_defaults timeout: @config.rpcs.export_model.timeout,
|
1775
1809
|
metadata: metadata,
|
1776
1810
|
retry_policy: @config.rpcs.export_model.retry_policy
|
1777
|
-
|
1811
|
+
|
1812
|
+
options.apply_defaults timeout: @config.timeout,
|
1813
|
+
metadata: @config.metadata,
|
1778
1814
|
retry_policy: @config.retry_policy
|
1779
1815
|
|
1780
1816
|
@auto_ml_stub.call_rpc :export_model, request, options: options do |response, operation|
|
@@ -1857,7 +1893,9 @@ module Google
|
|
1857
1893
|
options.apply_defaults timeout: @config.rpcs.export_evaluated_examples.timeout,
|
1858
1894
|
metadata: metadata,
|
1859
1895
|
retry_policy: @config.rpcs.export_evaluated_examples.retry_policy
|
1860
|
-
|
1896
|
+
|
1897
|
+
options.apply_defaults timeout: @config.timeout,
|
1898
|
+
metadata: @config.metadata,
|
1861
1899
|
retry_policy: @config.retry_policy
|
1862
1900
|
|
1863
1901
|
@auto_ml_stub.call_rpc :export_evaluated_examples, request, options: options do |response, operation|
|
@@ -1924,7 +1962,9 @@ module Google
|
|
1924
1962
|
options.apply_defaults timeout: @config.rpcs.get_model_evaluation.timeout,
|
1925
1963
|
metadata: metadata,
|
1926
1964
|
retry_policy: @config.rpcs.get_model_evaluation.retry_policy
|
1927
|
-
|
1965
|
+
|
1966
|
+
options.apply_defaults timeout: @config.timeout,
|
1967
|
+
metadata: @config.metadata,
|
1928
1968
|
retry_policy: @config.retry_policy
|
1929
1969
|
|
1930
1970
|
@auto_ml_stub.call_rpc :get_model_evaluation, request, options: options do |response, operation|
|
@@ -2011,7 +2051,9 @@ module Google
|
|
2011
2051
|
options.apply_defaults timeout: @config.rpcs.list_model_evaluations.timeout,
|
2012
2052
|
metadata: metadata,
|
2013
2053
|
retry_policy: @config.rpcs.list_model_evaluations.retry_policy
|
2014
|
-
|
2054
|
+
|
2055
|
+
options.apply_defaults timeout: @config.timeout,
|
2056
|
+
metadata: @config.metadata,
|
2015
2057
|
retry_policy: @config.retry_policy
|
2016
2058
|
|
2017
2059
|
@auto_ml_stub.call_rpc :list_model_evaluations, request, options: options do |response, operation|
|
@@ -2036,22 +2078,21 @@ module Google
|
|
2036
2078
|
# Configuration can be applied globally to all clients, or to a single client
|
2037
2079
|
# on construction.
|
2038
2080
|
#
|
2039
|
-
#
|
2040
|
-
#
|
2041
|
-
#
|
2042
|
-
# to 20 seconds,
|
2043
|
-
#
|
2044
|
-
#
|
2045
|
-
#
|
2046
|
-
#
|
2047
|
-
#
|
2048
|
-
#
|
2049
|
-
#
|
2050
|
-
#
|
2051
|
-
#
|
2052
|
-
#
|
2053
|
-
#
|
2054
|
-
# end
|
2081
|
+
# @example
|
2082
|
+
#
|
2083
|
+
# # Modify the global config, setting the timeout for
|
2084
|
+
# # create_dataset to 20 seconds,
|
2085
|
+
# # and all remaining timeouts to 10 seconds.
|
2086
|
+
# ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
|
2087
|
+
# config.timeout = 10.0
|
2088
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2089
|
+
# end
|
2090
|
+
#
|
2091
|
+
# # Apply the above configuration only to a new client.
|
2092
|
+
# client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
|
2093
|
+
# config.timeout = 10.0
|
2094
|
+
# config.rpcs.create_dataset.timeout = 20.0
|
2095
|
+
# end
|
2055
2096
|
#
|
2056
2097
|
# @!attribute [rw] endpoint
|
2057
2098
|
# 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.
|
@@ -44,13 +44,12 @@ module Google
|
|
44
44
|
# See {::Google::Cloud::AutoML::V1beta1::PredictionService::Client::Configuration}
|
45
45
|
# for a description of the configuration fields.
|
46
46
|
#
|
47
|
-
#
|
47
|
+
# @example
|
48
48
|
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# end
|
49
|
+
# # Modify the configuration for all PredictionService clients
|
50
|
+
# ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.configure do |config|
|
51
|
+
# config.timeout = 10.0
|
52
|
+
# end
|
54
53
|
#
|
55
54
|
# @yield [config] Configure the Client client.
|
56
55
|
# @yieldparam config [Client::Configuration]
|
@@ -101,19 +100,15 @@ module Google
|
|
101
100
|
##
|
102
101
|
# Create a new PredictionService client object.
|
103
102
|
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
# To create a new PredictionService client with the default
|
107
|
-
# configuration:
|
108
|
-
#
|
109
|
-
# client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
103
|
+
# @example
|
110
104
|
#
|
111
|
-
#
|
112
|
-
#
|
105
|
+
# # Create a client using the default configuration
|
106
|
+
# client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
|
113
107
|
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
108
|
+
# # Create a client using a custom configuration
|
109
|
+
# client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new do |config|
|
110
|
+
# config.timeout = 10.0
|
111
|
+
# end
|
117
112
|
#
|
118
113
|
# @yield [config] Configure the PredictionService client.
|
119
114
|
# @yieldparam config [Client::Configuration]
|
@@ -133,10 +128,9 @@ module Google
|
|
133
128
|
|
134
129
|
# Create credentials
|
135
130
|
credentials = @config.credentials
|
136
|
-
# Use self-signed JWT if the
|
131
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
137
132
|
# but only if the default endpoint does not have a region prefix.
|
138
|
-
enable_self_signed_jwt = @config.
|
139
|
-
@config.endpoint == Client.configure.endpoint &&
|
133
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
140
134
|
!@config.endpoint.split(".").first.include?("-")
|
141
135
|
credentials ||= Credentials.default scope: @config.scope,
|
142
136
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -266,7 +260,9 @@ module Google
|
|
266
260
|
options.apply_defaults timeout: @config.rpcs.predict.timeout,
|
267
261
|
metadata: metadata,
|
268
262
|
retry_policy: @config.rpcs.predict.retry_policy
|
269
|
-
|
263
|
+
|
264
|
+
options.apply_defaults timeout: @config.timeout,
|
265
|
+
metadata: @config.metadata,
|
270
266
|
retry_policy: @config.retry_policy
|
271
267
|
|
272
268
|
@prediction_service_stub.call_rpc :predict, request, options: options do |response, operation|
|
@@ -419,7 +415,9 @@ module Google
|
|
419
415
|
options.apply_defaults timeout: @config.rpcs.batch_predict.timeout,
|
420
416
|
metadata: metadata,
|
421
417
|
retry_policy: @config.rpcs.batch_predict.retry_policy
|
422
|
-
|
418
|
+
|
419
|
+
options.apply_defaults timeout: @config.timeout,
|
420
|
+
metadata: @config.metadata,
|
423
421
|
retry_policy: @config.retry_policy
|
424
422
|
|
425
423
|
@prediction_service_stub.call_rpc :batch_predict, request, options: options do |response, operation|
|
@@ -444,22 +442,21 @@ module Google
|
|
444
442
|
# Configuration can be applied globally to all clients, or to a single client
|
445
443
|
# on construction.
|
446
444
|
#
|
447
|
-
#
|
448
|
-
#
|
449
|
-
#
|
450
|
-
# to 20 seconds,
|
451
|
-
#
|
452
|
-
#
|
453
|
-
#
|
454
|
-
#
|
455
|
-
#
|
456
|
-
#
|
457
|
-
#
|
458
|
-
#
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
# end
|
445
|
+
# @example
|
446
|
+
#
|
447
|
+
# # Modify the global config, setting the timeout for
|
448
|
+
# # predict to 20 seconds,
|
449
|
+
# # and all remaining timeouts to 10 seconds.
|
450
|
+
# ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.configure do |config|
|
451
|
+
# config.timeout = 10.0
|
452
|
+
# config.rpcs.predict.timeout = 20.0
|
453
|
+
# end
|
454
|
+
#
|
455
|
+
# # Apply the above configuration only to a new client.
|
456
|
+
# client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new do |config|
|
457
|
+
# config.timeout = 10.0
|
458
|
+
# config.rpcs.predict.timeout = 20.0
|
459
|
+
# end
|
463
460
|
#
|
464
461
|
# @!attribute [rw] endpoint
|
465
462
|
# 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-automl-v1beta1
|
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
|