google-cloud-automl-v1 0.4.2 → 0.4.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: 5eb393d0e61f8a9532061a672a74c8f67dcbea8fb402e332deca6d687f9c8a65
4
- data.tar.gz: 2f3e78cee9e36a4d60efa2c4b6f66f8f09276b882e3bd9daf655eea6ccb16b35
3
+ metadata.gz: 3e0537d448c1d51b618a9a8542a11f71e4d5edff110f98bc3eb8d6c03096635f
4
+ data.tar.gz: 318c3203fec766e64ea06b2d272e52c65c27a5085c90baab099d17110d51ab03
5
5
  SHA512:
6
- metadata.gz: 3cd9ef40ab50bcf048b31513d391db0498ec93ef3f5db28dc09ed5f79060f0e405763ef9334474481c821a26bb701c6ad64c739ccddb1b4d4b9dd220a493efc5
7
- data.tar.gz: ed494b28be93a81a7f2427a27e19e86d93ff21365a1426f1f920f0dbd9604d6a48ae7a5de21022b2b3f13a3c12f1e9c1cd801b9d882df6dd5ae5988198537a69
6
+ metadata.gz: da2d87895359d71fbbdcc3c57783baa04843fc1b80b45a7ac6ee9f0cd7168880dae3d7faa8252bbad7bff73c2ddb994f93ac9d000593e2fc137812fd1422cc00
7
+ data.tar.gz: f9dc9b5f4cbf45081fbefdc109286d06a431d8dfc901955a5b94bfad01c1077b3a3a7717dc2f4b373f1976106fb993b58ae10d56df61cabb0587ef9594efc447
@@ -54,13 +54,12 @@ module Google
54
54
  # See {::Google::Cloud::AutoML::V1::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::V1::AutoML::Client.configure do |config|
62
- # config.timeout = 10.0
63
- # end
59
+ # # Modify the configuration for all AutoMl clients
60
+ # ::Google::Cloud::AutoML::V1::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]
@@ -170,19 +169,15 @@ module Google
170
169
  ##
171
170
  # Create a new AutoMl client object.
172
171
  #
173
- # ## Examples
174
- #
175
- # To create a new AutoMl client with the default
176
- # configuration:
172
+ # @example
177
173
  #
178
- # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new
174
+ # # Create a client using the default configuration
175
+ # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new
179
176
  #
180
- # To create a new AutoMl client with a custom
181
- # configuration:
182
- #
183
- # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
184
- # config.timeout = 10.0
185
- # end
177
+ # # Create a client using a custom configuration
178
+ # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
179
+ # config.timeout = 10.0
180
+ # end
186
181
  #
187
182
  # @yield [config] Configure the AutoMl client.
188
183
  # @yieldparam config [Client::Configuration]
@@ -202,10 +197,9 @@ module Google
202
197
 
203
198
  # Create credentials
204
199
  credentials = @config.credentials
205
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
200
+ # Use self-signed JWT if the endpoint is unchanged from default,
206
201
  # but only if the default endpoint does not have a region prefix.
207
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
208
- @config.endpoint == Client.configure.endpoint &&
202
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
209
203
  !@config.endpoint.split(".").first.include?("-")
210
204
  credentials ||= Credentials.default scope: @config.scope,
211
205
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -295,7 +289,9 @@ module Google
295
289
  options.apply_defaults timeout: @config.rpcs.create_dataset.timeout,
296
290
  metadata: metadata,
297
291
  retry_policy: @config.rpcs.create_dataset.retry_policy
298
- options.apply_defaults metadata: @config.metadata,
292
+
293
+ options.apply_defaults timeout: @config.timeout,
294
+ metadata: @config.metadata,
299
295
  retry_policy: @config.retry_policy
300
296
 
301
297
  @auto_ml_stub.call_rpc :create_dataset, request, options: options do |response, operation|
@@ -362,7 +358,9 @@ module Google
362
358
  options.apply_defaults timeout: @config.rpcs.get_dataset.timeout,
363
359
  metadata: metadata,
364
360
  retry_policy: @config.rpcs.get_dataset.retry_policy
365
- options.apply_defaults metadata: @config.metadata,
361
+
362
+ options.apply_defaults timeout: @config.timeout,
363
+ metadata: @config.metadata,
366
364
  retry_policy: @config.retry_policy
367
365
 
368
366
  @auto_ml_stub.call_rpc :get_dataset, request, options: options do |response, operation|
@@ -444,7 +442,9 @@ module Google
444
442
  options.apply_defaults timeout: @config.rpcs.list_datasets.timeout,
445
443
  metadata: metadata,
446
444
  retry_policy: @config.rpcs.list_datasets.retry_policy
447
- options.apply_defaults metadata: @config.metadata,
445
+
446
+ options.apply_defaults timeout: @config.timeout,
447
+ metadata: @config.metadata,
448
448
  retry_policy: @config.retry_policy
449
449
 
450
450
  @auto_ml_stub.call_rpc :list_datasets, request, options: options do |response, operation|
@@ -513,7 +513,9 @@ module Google
513
513
  options.apply_defaults timeout: @config.rpcs.update_dataset.timeout,
514
514
  metadata: metadata,
515
515
  retry_policy: @config.rpcs.update_dataset.retry_policy
516
- options.apply_defaults metadata: @config.metadata,
516
+
517
+ options.apply_defaults timeout: @config.timeout,
518
+ metadata: @config.metadata,
517
519
  retry_policy: @config.retry_policy
518
520
 
519
521
  @auto_ml_stub.call_rpc :update_dataset, request, options: options do |response, operation|
@@ -583,7 +585,9 @@ module Google
583
585
  options.apply_defaults timeout: @config.rpcs.delete_dataset.timeout,
584
586
  metadata: metadata,
585
587
  retry_policy: @config.rpcs.delete_dataset.retry_policy
586
- options.apply_defaults metadata: @config.metadata,
588
+
589
+ options.apply_defaults timeout: @config.timeout,
590
+ metadata: @config.metadata,
587
591
  retry_policy: @config.retry_policy
588
592
 
589
593
  @auto_ml_stub.call_rpc :delete_dataset, request, options: options do |response, operation|
@@ -662,7 +666,9 @@ module Google
662
666
  options.apply_defaults timeout: @config.rpcs.import_data.timeout,
663
667
  metadata: metadata,
664
668
  retry_policy: @config.rpcs.import_data.retry_policy
665
- options.apply_defaults metadata: @config.metadata,
669
+
670
+ options.apply_defaults timeout: @config.timeout,
671
+ metadata: @config.metadata,
666
672
  retry_policy: @config.retry_policy
667
673
 
668
674
  @auto_ml_stub.call_rpc :import_data, request, options: options do |response, operation|
@@ -733,7 +739,9 @@ module Google
733
739
  options.apply_defaults timeout: @config.rpcs.export_data.timeout,
734
740
  metadata: metadata,
735
741
  retry_policy: @config.rpcs.export_data.retry_policy
736
- options.apply_defaults metadata: @config.metadata,
742
+
743
+ options.apply_defaults timeout: @config.timeout,
744
+ metadata: @config.metadata,
737
745
  retry_policy: @config.retry_policy
738
746
 
739
747
  @auto_ml_stub.call_rpc :export_data, request, options: options do |response, operation|
@@ -800,7 +808,9 @@ module Google
800
808
  options.apply_defaults timeout: @config.rpcs.get_annotation_spec.timeout,
801
809
  metadata: metadata,
802
810
  retry_policy: @config.rpcs.get_annotation_spec.retry_policy
803
- options.apply_defaults metadata: @config.metadata,
811
+
812
+ options.apply_defaults timeout: @config.timeout,
813
+ metadata: @config.metadata,
804
814
  retry_policy: @config.retry_policy
805
815
 
806
816
  @auto_ml_stub.call_rpc :get_annotation_spec, request, options: options do |response, operation|
@@ -872,7 +882,9 @@ module Google
872
882
  options.apply_defaults timeout: @config.rpcs.create_model.timeout,
873
883
  metadata: metadata,
874
884
  retry_policy: @config.rpcs.create_model.retry_policy
875
- options.apply_defaults metadata: @config.metadata,
885
+
886
+ options.apply_defaults timeout: @config.timeout,
887
+ metadata: @config.metadata,
876
888
  retry_policy: @config.retry_policy
877
889
 
878
890
  @auto_ml_stub.call_rpc :create_model, request, options: options do |response, operation|
@@ -939,7 +951,9 @@ module Google
939
951
  options.apply_defaults timeout: @config.rpcs.get_model.timeout,
940
952
  metadata: metadata,
941
953
  retry_policy: @config.rpcs.get_model.retry_policy
942
- options.apply_defaults metadata: @config.metadata,
954
+
955
+ options.apply_defaults timeout: @config.timeout,
956
+ metadata: @config.metadata,
943
957
  retry_policy: @config.retry_policy
944
958
 
945
959
  @auto_ml_stub.call_rpc :get_model, request, options: options do |response, operation|
@@ -1022,7 +1036,9 @@ module Google
1022
1036
  options.apply_defaults timeout: @config.rpcs.list_models.timeout,
1023
1037
  metadata: metadata,
1024
1038
  retry_policy: @config.rpcs.list_models.retry_policy
1025
- options.apply_defaults metadata: @config.metadata,
1039
+
1040
+ options.apply_defaults timeout: @config.timeout,
1041
+ metadata: @config.metadata,
1026
1042
  retry_policy: @config.retry_policy
1027
1043
 
1028
1044
  @auto_ml_stub.call_rpc :list_models, request, options: options do |response, operation|
@@ -1093,7 +1109,9 @@ module Google
1093
1109
  options.apply_defaults timeout: @config.rpcs.delete_model.timeout,
1094
1110
  metadata: metadata,
1095
1111
  retry_policy: @config.rpcs.delete_model.retry_policy
1096
- options.apply_defaults metadata: @config.metadata,
1112
+
1113
+ options.apply_defaults timeout: @config.timeout,
1114
+ metadata: @config.metadata,
1097
1115
  retry_policy: @config.retry_policy
1098
1116
 
1099
1117
  @auto_ml_stub.call_rpc :delete_model, request, options: options do |response, operation|
@@ -1162,7 +1180,9 @@ module Google
1162
1180
  options.apply_defaults timeout: @config.rpcs.update_model.timeout,
1163
1181
  metadata: metadata,
1164
1182
  retry_policy: @config.rpcs.update_model.retry_policy
1165
- options.apply_defaults metadata: @config.metadata,
1183
+
1184
+ options.apply_defaults timeout: @config.timeout,
1185
+ metadata: @config.metadata,
1166
1186
  retry_policy: @config.retry_policy
1167
1187
 
1168
1188
  @auto_ml_stub.call_rpc :update_model, request, options: options do |response, operation|
@@ -1243,7 +1263,9 @@ module Google
1243
1263
  options.apply_defaults timeout: @config.rpcs.deploy_model.timeout,
1244
1264
  metadata: metadata,
1245
1265
  retry_policy: @config.rpcs.deploy_model.retry_policy
1246
- options.apply_defaults metadata: @config.metadata,
1266
+
1267
+ options.apply_defaults timeout: @config.timeout,
1268
+ metadata: @config.metadata,
1247
1269
  retry_policy: @config.retry_policy
1248
1270
 
1249
1271
  @auto_ml_stub.call_rpc :deploy_model, request, options: options do |response, operation|
@@ -1316,7 +1338,9 @@ module Google
1316
1338
  options.apply_defaults timeout: @config.rpcs.undeploy_model.timeout,
1317
1339
  metadata: metadata,
1318
1340
  retry_policy: @config.rpcs.undeploy_model.retry_policy
1319
- options.apply_defaults metadata: @config.metadata,
1341
+
1342
+ options.apply_defaults timeout: @config.timeout,
1343
+ metadata: @config.metadata,
1320
1344
  retry_policy: @config.retry_policy
1321
1345
 
1322
1346
  @auto_ml_stub.call_rpc :undeploy_model, request, options: options do |response, operation|
@@ -1391,7 +1415,9 @@ module Google
1391
1415
  options.apply_defaults timeout: @config.rpcs.export_model.timeout,
1392
1416
  metadata: metadata,
1393
1417
  retry_policy: @config.rpcs.export_model.retry_policy
1394
- options.apply_defaults metadata: @config.metadata,
1418
+
1419
+ options.apply_defaults timeout: @config.timeout,
1420
+ metadata: @config.metadata,
1395
1421
  retry_policy: @config.retry_policy
1396
1422
 
1397
1423
  @auto_ml_stub.call_rpc :export_model, request, options: options do |response, operation|
@@ -1458,7 +1484,9 @@ module Google
1458
1484
  options.apply_defaults timeout: @config.rpcs.get_model_evaluation.timeout,
1459
1485
  metadata: metadata,
1460
1486
  retry_policy: @config.rpcs.get_model_evaluation.retry_policy
1461
- options.apply_defaults metadata: @config.metadata,
1487
+
1488
+ options.apply_defaults timeout: @config.timeout,
1489
+ metadata: @config.metadata,
1462
1490
  retry_policy: @config.retry_policy
1463
1491
 
1464
1492
  @auto_ml_stub.call_rpc :get_model_evaluation, request, options: options do |response, operation|
@@ -1545,7 +1573,9 @@ module Google
1545
1573
  options.apply_defaults timeout: @config.rpcs.list_model_evaluations.timeout,
1546
1574
  metadata: metadata,
1547
1575
  retry_policy: @config.rpcs.list_model_evaluations.retry_policy
1548
- options.apply_defaults metadata: @config.metadata,
1576
+
1577
+ options.apply_defaults timeout: @config.timeout,
1578
+ metadata: @config.metadata,
1549
1579
  retry_policy: @config.retry_policy
1550
1580
 
1551
1581
  @auto_ml_stub.call_rpc :list_model_evaluations, request, options: options do |response, operation|
@@ -1570,22 +1600,21 @@ module Google
1570
1600
  # Configuration can be applied globally to all clients, or to a single client
1571
1601
  # on construction.
1572
1602
  #
1573
- # # Examples
1574
- #
1575
- # To modify the global config, setting the timeout for create_dataset
1576
- # to 20 seconds, and all remaining timeouts to 10 seconds:
1577
- #
1578
- # ::Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
1579
- # config.timeout = 10.0
1580
- # config.rpcs.create_dataset.timeout = 20.0
1581
- # end
1582
- #
1583
- # To apply the above configuration only to a new client:
1584
- #
1585
- # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
1586
- # config.timeout = 10.0
1587
- # config.rpcs.create_dataset.timeout = 20.0
1588
- # end
1603
+ # @example
1604
+ #
1605
+ # # Modify the global config, setting the timeout for
1606
+ # # create_dataset to 20 seconds,
1607
+ # # and all remaining timeouts to 10 seconds.
1608
+ # ::Google::Cloud::AutoML::V1::AutoML::Client.configure do |config|
1609
+ # config.timeout = 10.0
1610
+ # config.rpcs.create_dataset.timeout = 20.0
1611
+ # end
1612
+ #
1613
+ # # Apply the above configuration only to a new client.
1614
+ # client = ::Google::Cloud::AutoML::V1::AutoML::Client.new do |config|
1615
+ # config.timeout = 10.0
1616
+ # config.rpcs.create_dataset.timeout = 20.0
1617
+ # end
1589
1618
  #
1590
1619
  # @!attribute [rw] endpoint
1591
1620
  # 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::V1::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::V1::PredictionService::Client.configure do |config|
52
- # config.timeout = 10.0
53
- # end
49
+ # # Modify the configuration for all PredictionService clients
50
+ # ::Google::Cloud::AutoML::V1::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::V1::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::V1::PredictionService::Client.new
113
107
  #
114
- # client = ::Google::Cloud::AutoML::V1::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::V1::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
@@ -294,7 +288,9 @@ module Google
294
288
  options.apply_defaults timeout: @config.rpcs.predict.timeout,
295
289
  metadata: metadata,
296
290
  retry_policy: @config.rpcs.predict.retry_policy
297
- options.apply_defaults metadata: @config.metadata,
291
+
292
+ options.apply_defaults timeout: @config.timeout,
293
+ metadata: @config.metadata,
298
294
  retry_policy: @config.retry_policy
299
295
 
300
296
  @prediction_service_stub.call_rpc :predict, request, options: options do |response, operation|
@@ -463,7 +459,9 @@ module Google
463
459
  options.apply_defaults timeout: @config.rpcs.batch_predict.timeout,
464
460
  metadata: metadata,
465
461
  retry_policy: @config.rpcs.batch_predict.retry_policy
466
- options.apply_defaults metadata: @config.metadata,
462
+
463
+ options.apply_defaults timeout: @config.timeout,
464
+ metadata: @config.metadata,
467
465
  retry_policy: @config.retry_policy
468
466
 
469
467
  @prediction_service_stub.call_rpc :batch_predict, request, options: options do |response, operation|
@@ -488,22 +486,21 @@ module Google
488
486
  # Configuration can be applied globally to all clients, or to a single client
489
487
  # on construction.
490
488
  #
491
- # # Examples
492
- #
493
- # To modify the global config, setting the timeout for predict
494
- # to 20 seconds, and all remaining timeouts to 10 seconds:
495
- #
496
- # ::Google::Cloud::AutoML::V1::PredictionService::Client.configure do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.predict.timeout = 20.0
499
- # end
500
- #
501
- # To apply the above configuration only to a new client:
502
- #
503
- # client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
504
- # config.timeout = 10.0
505
- # config.rpcs.predict.timeout = 20.0
506
- # end
489
+ # @example
490
+ #
491
+ # # Modify the global config, setting the timeout for
492
+ # # predict to 20 seconds,
493
+ # # and all remaining timeouts to 10 seconds.
494
+ # ::Google::Cloud::AutoML::V1::PredictionService::Client.configure do |config|
495
+ # config.timeout = 10.0
496
+ # config.rpcs.predict.timeout = 20.0
497
+ # end
498
+ #
499
+ # # Apply the above configuration only to a new client.
500
+ # client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
501
+ # config.timeout = 10.0
502
+ # config.rpcs.predict.timeout = 20.0
503
+ # end
507
504
  #
508
505
  # @!attribute [rw] endpoint
509
506
  # 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 V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.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