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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ad2bb9fa21e7950c23f90bef266401c4e1798b6111738e71e263b73f6eb7254f
4
- data.tar.gz: 2a42932abfbf308e1bdb879b624cb11cd04a121ffcc50789aa2a288105013ef2
3
+ metadata.gz: a74c4cb09f4e9f22d044c6d60888b9a6b81e0d5aa85f2f7efaa8ef48865f3e93
4
+ data.tar.gz: c001925e11f5a6aaee92fb06d47b0bc28b7a45b54725fddb4f57c8fe4e331bb2
5
5
  SHA512:
6
- metadata.gz: d6ee105b7e4df1af7049ba400b4b0f3d09543ee19b3d70e69fafe2ca4dcd888a867d3ac50cd78bb68002fe09011ac6cf747f6147141b29faf0163f059618fc67
7
- data.tar.gz: a79834d56dda41fb434d875124d92b4f8bc9064b630a5a3cf735554c84ef65d4bb86a2d0a21d22ba89db61c9b34eb05d95fad6b0128f30f7fa97d0afd7fcca53
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
- # ## Example
57
+ # @example
58
58
  #
59
- # To modify the configuration for all AutoMl clients:
60
- #
61
- # ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
62
- # config.timeout = 10.0
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
- # ## Examples
195
- #
196
- # To create a new AutoMl client with the default
197
- # configuration:
193
+ # @example
198
194
  #
199
- # client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new
195
+ # # Create a client using the default configuration
196
+ # client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new
200
197
  #
201
- # To create a new AutoMl client with a custom
202
- # configuration:
203
- #
204
- # client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
2040
- #
2041
- # To modify the global config, setting the timeout for create_dataset
2042
- # to 20 seconds, and all remaining timeouts to 10 seconds:
2043
- #
2044
- # ::Google::Cloud::AutoML::V1beta1::AutoML::Client.configure do |config|
2045
- # config.timeout = 10.0
2046
- # config.rpcs.create_dataset.timeout = 20.0
2047
- # end
2048
- #
2049
- # To apply the above configuration only to a new client:
2050
- #
2051
- # client = ::Google::Cloud::AutoML::V1beta1::AutoML::Client.new do |config|
2052
- # config.timeout = 10.0
2053
- # config.rpcs.create_dataset.timeout = 20.0
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
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
- # ## Example
47
+ # @example
48
48
  #
49
- # To modify the configuration for all PredictionService clients:
50
- #
51
- # ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.configure do |config|
52
- # config.timeout = 10.0
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
- # ## Examples
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
- # To create a new PredictionService client with a custom
112
- # configuration:
105
+ # # Create a client using the default configuration
106
+ # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new
113
107
  #
114
- # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new do |config|
115
- # config.timeout = 10.0
116
- # end
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 scope and endpoint are unchanged from default,
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.scope == Client.configure.scope &&
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
448
- #
449
- # To modify the global config, setting the timeout for predict
450
- # to 20 seconds, and all remaining timeouts to 10 seconds:
451
- #
452
- # ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.configure do |config|
453
- # config.timeout = 10.0
454
- # config.rpcs.predict.timeout = 20.0
455
- # end
456
- #
457
- # To apply the above configuration only to a new client:
458
- #
459
- # client = ::Google::Cloud::AutoML::V1beta1::PredictionService::Client.new do |config|
460
- # config.timeout = 10.0
461
- # config.rpcs.predict.timeout = 20.0
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- options.apply_defaults metadata: @config.metadata,
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
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AutoML
23
23
  module V1beta1
24
- VERSION = "0.5.2"
24
+ VERSION = "0.5.3"
25
25
  end
26
26
  end
27
27
  end
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.2
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-07-12 00:00:00.000000000 Z
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.5'
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.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a