google-cloud-automl-v1 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf5030a105926090fc9d2ab81b216b49549caf87e2ef852fdbfae53a6cb479ea
4
- data.tar.gz: 20e81812e94f3335307dd1bc2944ae2ffb9cb9985076b3cc1c5c18b845665d32
3
+ metadata.gz: cf74d6ebc5cdec045f82b197b5017327b95a2d8edb8676a50dde565ec4d96751
4
+ data.tar.gz: 772f9a6d220bbe5d7d8274b59c1c4ac115a02f1f86e695e1c2642ccdb774d0b4
5
5
  SHA512:
6
- metadata.gz: 1845dd8a4dcf1c1476af124cd96058ddd29627f3623f5f9953721c09fad18b633152bab27631c69fbe5916eca5f5d3a06b26acb2566c9e2f4d28a1ca710d2823
7
- data.tar.gz: '0079a98743ec976ff489e46ea48d169b568baeba6302c22f6794d3946c44e5924615a1662632ef93f28f2dec24bc386a4f0cc31fb0400e374b2f465b271bb524'
6
+ metadata.gz: ba9d8cb1d3dfd6d2389a3badf760860690617868c78de5f17c5d942963411843583d12a31bcca22ce531637b869db118b557e1044b1fc194ac0a04cce38b9e76
7
+ data.tar.gz: a75810f8027bfaead42b09ef67a8bf27ddf7d2da3b6952f6503671e631363cfa1c2a2b5cb7ac2b8f27c87566518316dd72eeae94a61c702e00a46525f06ec6a7
@@ -220,7 +220,8 @@ module Google
220
220
  credentials: credentials,
221
221
  endpoint: @config.endpoint,
222
222
  channel_args: @config.channel_args,
223
- interceptors: @config.interceptors
223
+ interceptors: @config.interceptors,
224
+ channel_pool_config: @config.channel_pool
224
225
  )
225
226
  end
226
227
 
@@ -2087,6 +2088,14 @@ module Google
2087
2088
  end
2088
2089
  end
2089
2090
 
2091
+ ##
2092
+ # Configuration for the channel pool
2093
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
2094
+ #
2095
+ def channel_pool
2096
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
2097
+ end
2098
+
2090
2099
  ##
2091
2100
  # Configuration RPC class for the AutoMl API.
2092
2101
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -709,6 +710,14 @@ module Google
709
710
  end
710
711
  end
711
712
 
713
+ ##
714
+ # Configuration for the channel pool
715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
716
+ #
717
+ def channel_pool
718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
719
+ end
720
+
712
721
  ##
713
722
  # Configuration RPC class for the Operations API.
714
723
  #
@@ -253,6 +253,29 @@ module Google
253
253
  # @return [::Gapic::Operation]
254
254
  #
255
255
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
256
+ #
257
+ # @example Basic example
258
+ # require "google/cloud/automl/v1"
259
+ #
260
+ # # Create a client object. The client can be reused for multiple calls.
261
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
262
+ #
263
+ # # Create a request. To set request fields, pass in keyword arguments.
264
+ # request = Google::Cloud::AutoML::V1::CreateDatasetRequest.new
265
+ #
266
+ # # Call the create_dataset method.
267
+ # result = client.create_dataset request
268
+ #
269
+ # # The returned object is of type Gapic::Operation. You can use it to
270
+ # # check the status of an operation, cancel it, or wait for results.
271
+ # # Here is how to wait for a response.
272
+ # result.wait_until_done! timeout: 60
273
+ # if result.response?
274
+ # p result.response
275
+ # else
276
+ # puts "No response received."
277
+ # end
278
+ #
256
279
  def create_dataset request, options = nil
257
280
  raise ::ArgumentError, "request must be provided" if request.nil?
258
281
 
@@ -316,6 +339,22 @@ module Google
316
339
  # @return [::Google::Cloud::AutoML::V1::Dataset]
317
340
  #
318
341
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
342
+ #
343
+ # @example Basic example
344
+ # require "google/cloud/automl/v1"
345
+ #
346
+ # # Create a client object. The client can be reused for multiple calls.
347
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
348
+ #
349
+ # # Create a request. To set request fields, pass in keyword arguments.
350
+ # request = Google::Cloud::AutoML::V1::GetDatasetRequest.new
351
+ #
352
+ # # Call the get_dataset method.
353
+ # result = client.get_dataset request
354
+ #
355
+ # # The returned object is of type Google::Cloud::AutoML::V1::Dataset.
356
+ # p result
357
+ #
319
358
  def get_dataset request, options = nil
320
359
  raise ::ArgumentError, "request must be provided" if request.nil?
321
360
 
@@ -394,6 +433,26 @@ module Google
394
433
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1::Dataset>]
395
434
  #
396
435
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
436
+ #
437
+ # @example Basic example
438
+ # require "google/cloud/automl/v1"
439
+ #
440
+ # # Create a client object. The client can be reused for multiple calls.
441
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
442
+ #
443
+ # # Create a request. To set request fields, pass in keyword arguments.
444
+ # request = Google::Cloud::AutoML::V1::ListDatasetsRequest.new
445
+ #
446
+ # # Call the list_datasets method.
447
+ # result = client.list_datasets request
448
+ #
449
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
450
+ # # over elements, and API calls will be issued to fetch pages as needed.
451
+ # result.each do |item|
452
+ # # Each element is of type ::Google::Cloud::AutoML::V1::Dataset.
453
+ # p item
454
+ # end
455
+ #
397
456
  def list_datasets request, options = nil
398
457
  raise ::ArgumentError, "request must be provided" if request.nil?
399
458
 
@@ -459,6 +518,22 @@ module Google
459
518
  # @return [::Google::Cloud::AutoML::V1::Dataset]
460
519
  #
461
520
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
521
+ #
522
+ # @example Basic example
523
+ # require "google/cloud/automl/v1"
524
+ #
525
+ # # Create a client object. The client can be reused for multiple calls.
526
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
527
+ #
528
+ # # Create a request. To set request fields, pass in keyword arguments.
529
+ # request = Google::Cloud::AutoML::V1::UpdateDatasetRequest.new
530
+ #
531
+ # # Call the update_dataset method.
532
+ # result = client.update_dataset request
533
+ #
534
+ # # The returned object is of type Google::Cloud::AutoML::V1::Dataset.
535
+ # p result
536
+ #
462
537
  def update_dataset request, options = nil
463
538
  raise ::ArgumentError, "request must be provided" if request.nil?
464
539
 
@@ -525,6 +600,29 @@ module Google
525
600
  # @return [::Gapic::Operation]
526
601
  #
527
602
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
603
+ #
604
+ # @example Basic example
605
+ # require "google/cloud/automl/v1"
606
+ #
607
+ # # Create a client object. The client can be reused for multiple calls.
608
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
609
+ #
610
+ # # Create a request. To set request fields, pass in keyword arguments.
611
+ # request = Google::Cloud::AutoML::V1::DeleteDatasetRequest.new
612
+ #
613
+ # # Call the delete_dataset method.
614
+ # result = client.delete_dataset request
615
+ #
616
+ # # The returned object is of type Gapic::Operation. You can use it to
617
+ # # check the status of an operation, cancel it, or wait for results.
618
+ # # Here is how to wait for a response.
619
+ # result.wait_until_done! timeout: 60
620
+ # if result.response?
621
+ # p result.response
622
+ # else
623
+ # puts "No response received."
624
+ # end
625
+ #
528
626
  def delete_dataset request, options = nil
529
627
  raise ::ArgumentError, "request must be provided" if request.nil?
530
628
 
@@ -600,6 +698,29 @@ module Google
600
698
  # @return [::Gapic::Operation]
601
699
  #
602
700
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
701
+ #
702
+ # @example Basic example
703
+ # require "google/cloud/automl/v1"
704
+ #
705
+ # # Create a client object. The client can be reused for multiple calls.
706
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
707
+ #
708
+ # # Create a request. To set request fields, pass in keyword arguments.
709
+ # request = Google::Cloud::AutoML::V1::ImportDataRequest.new
710
+ #
711
+ # # Call the import_data method.
712
+ # result = client.import_data request
713
+ #
714
+ # # The returned object is of type Gapic::Operation. You can use it to
715
+ # # check the status of an operation, cancel it, or wait for results.
716
+ # # Here is how to wait for a response.
717
+ # result.wait_until_done! timeout: 60
718
+ # if result.response?
719
+ # p result.response
720
+ # else
721
+ # puts "No response received."
722
+ # end
723
+ #
603
724
  def import_data request, options = nil
604
725
  raise ::ArgumentError, "request must be provided" if request.nil?
605
726
 
@@ -667,6 +788,29 @@ module Google
667
788
  # @return [::Gapic::Operation]
668
789
  #
669
790
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
791
+ #
792
+ # @example Basic example
793
+ # require "google/cloud/automl/v1"
794
+ #
795
+ # # Create a client object. The client can be reused for multiple calls.
796
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
797
+ #
798
+ # # Create a request. To set request fields, pass in keyword arguments.
799
+ # request = Google::Cloud::AutoML::V1::ExportDataRequest.new
800
+ #
801
+ # # Call the export_data method.
802
+ # result = client.export_data request
803
+ #
804
+ # # The returned object is of type Gapic::Operation. You can use it to
805
+ # # check the status of an operation, cancel it, or wait for results.
806
+ # # Here is how to wait for a response.
807
+ # result.wait_until_done! timeout: 60
808
+ # if result.response?
809
+ # p result.response
810
+ # else
811
+ # puts "No response received."
812
+ # end
813
+ #
670
814
  def export_data request, options = nil
671
815
  raise ::ArgumentError, "request must be provided" if request.nil?
672
816
 
@@ -730,6 +874,22 @@ module Google
730
874
  # @return [::Google::Cloud::AutoML::V1::AnnotationSpec]
731
875
  #
732
876
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
877
+ #
878
+ # @example Basic example
879
+ # require "google/cloud/automl/v1"
880
+ #
881
+ # # Create a client object. The client can be reused for multiple calls.
882
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
883
+ #
884
+ # # Create a request. To set request fields, pass in keyword arguments.
885
+ # request = Google::Cloud::AutoML::V1::GetAnnotationSpecRequest.new
886
+ #
887
+ # # Call the get_annotation_spec method.
888
+ # result = client.get_annotation_spec request
889
+ #
890
+ # # The returned object is of type Google::Cloud::AutoML::V1::AnnotationSpec.
891
+ # p result
892
+ #
733
893
  def get_annotation_spec request, options = nil
734
894
  raise ::ArgumentError, "request must be provided" if request.nil?
735
895
 
@@ -798,6 +958,29 @@ module Google
798
958
  # @return [::Gapic::Operation]
799
959
  #
800
960
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
961
+ #
962
+ # @example Basic example
963
+ # require "google/cloud/automl/v1"
964
+ #
965
+ # # Create a client object. The client can be reused for multiple calls.
966
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
967
+ #
968
+ # # Create a request. To set request fields, pass in keyword arguments.
969
+ # request = Google::Cloud::AutoML::V1::CreateModelRequest.new
970
+ #
971
+ # # Call the create_model method.
972
+ # result = client.create_model request
973
+ #
974
+ # # The returned object is of type Gapic::Operation. You can use it to
975
+ # # check the status of an operation, cancel it, or wait for results.
976
+ # # Here is how to wait for a response.
977
+ # result.wait_until_done! timeout: 60
978
+ # if result.response?
979
+ # p result.response
980
+ # else
981
+ # puts "No response received."
982
+ # end
983
+ #
801
984
  def create_model request, options = nil
802
985
  raise ::ArgumentError, "request must be provided" if request.nil?
803
986
 
@@ -861,6 +1044,22 @@ module Google
861
1044
  # @return [::Google::Cloud::AutoML::V1::Model]
862
1045
  #
863
1046
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1047
+ #
1048
+ # @example Basic example
1049
+ # require "google/cloud/automl/v1"
1050
+ #
1051
+ # # Create a client object. The client can be reused for multiple calls.
1052
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1053
+ #
1054
+ # # Create a request. To set request fields, pass in keyword arguments.
1055
+ # request = Google::Cloud::AutoML::V1::GetModelRequest.new
1056
+ #
1057
+ # # Call the get_model method.
1058
+ # result = client.get_model request
1059
+ #
1060
+ # # The returned object is of type Google::Cloud::AutoML::V1::Model.
1061
+ # p result
1062
+ #
864
1063
  def get_model request, options = nil
865
1064
  raise ::ArgumentError, "request must be provided" if request.nil?
866
1065
 
@@ -940,6 +1139,26 @@ module Google
940
1139
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1::Model>]
941
1140
  #
942
1141
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1142
+ #
1143
+ # @example Basic example
1144
+ # require "google/cloud/automl/v1"
1145
+ #
1146
+ # # Create a client object. The client can be reused for multiple calls.
1147
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1148
+ #
1149
+ # # Create a request. To set request fields, pass in keyword arguments.
1150
+ # request = Google::Cloud::AutoML::V1::ListModelsRequest.new
1151
+ #
1152
+ # # Call the list_models method.
1153
+ # result = client.list_models request
1154
+ #
1155
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1156
+ # # over elements, and API calls will be issued to fetch pages as needed.
1157
+ # result.each do |item|
1158
+ # # Each element is of type ::Google::Cloud::AutoML::V1::Model.
1159
+ # p item
1160
+ # end
1161
+ #
943
1162
  def list_models request, options = nil
944
1163
  raise ::ArgumentError, "request must be provided" if request.nil?
945
1164
 
@@ -1007,6 +1226,29 @@ module Google
1007
1226
  # @return [::Gapic::Operation]
1008
1227
  #
1009
1228
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1229
+ #
1230
+ # @example Basic example
1231
+ # require "google/cloud/automl/v1"
1232
+ #
1233
+ # # Create a client object. The client can be reused for multiple calls.
1234
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1235
+ #
1236
+ # # Create a request. To set request fields, pass in keyword arguments.
1237
+ # request = Google::Cloud::AutoML::V1::DeleteModelRequest.new
1238
+ #
1239
+ # # Call the delete_model method.
1240
+ # result = client.delete_model request
1241
+ #
1242
+ # # The returned object is of type Gapic::Operation. You can use it to
1243
+ # # check the status of an operation, cancel it, or wait for results.
1244
+ # # Here is how to wait for a response.
1245
+ # result.wait_until_done! timeout: 60
1246
+ # if result.response?
1247
+ # p result.response
1248
+ # else
1249
+ # puts "No response received."
1250
+ # end
1251
+ #
1010
1252
  def delete_model request, options = nil
1011
1253
  raise ::ArgumentError, "request must be provided" if request.nil?
1012
1254
 
@@ -1072,6 +1314,22 @@ module Google
1072
1314
  # @return [::Google::Cloud::AutoML::V1::Model]
1073
1315
  #
1074
1316
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1317
+ #
1318
+ # @example Basic example
1319
+ # require "google/cloud/automl/v1"
1320
+ #
1321
+ # # Create a client object. The client can be reused for multiple calls.
1322
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1323
+ #
1324
+ # # Create a request. To set request fields, pass in keyword arguments.
1325
+ # request = Google::Cloud::AutoML::V1::UpdateModelRequest.new
1326
+ #
1327
+ # # Call the update_model method.
1328
+ # result = client.update_model request
1329
+ #
1330
+ # # The returned object is of type Google::Cloud::AutoML::V1::Model.
1331
+ # p result
1332
+ #
1075
1333
  def update_model request, options = nil
1076
1334
  raise ::ArgumentError, "request must be provided" if request.nil?
1077
1335
 
@@ -1148,6 +1406,29 @@ module Google
1148
1406
  # @return [::Gapic::Operation]
1149
1407
  #
1150
1408
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1409
+ #
1410
+ # @example Basic example
1411
+ # require "google/cloud/automl/v1"
1412
+ #
1413
+ # # Create a client object. The client can be reused for multiple calls.
1414
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1415
+ #
1416
+ # # Create a request. To set request fields, pass in keyword arguments.
1417
+ # request = Google::Cloud::AutoML::V1::DeployModelRequest.new
1418
+ #
1419
+ # # Call the deploy_model method.
1420
+ # result = client.deploy_model request
1421
+ #
1422
+ # # The returned object is of type Gapic::Operation. You can use it to
1423
+ # # check the status of an operation, cancel it, or wait for results.
1424
+ # # Here is how to wait for a response.
1425
+ # result.wait_until_done! timeout: 60
1426
+ # if result.response?
1427
+ # p result.response
1428
+ # else
1429
+ # puts "No response received."
1430
+ # end
1431
+ #
1151
1432
  def deploy_model request, options = nil
1152
1433
  raise ::ArgumentError, "request must be provided" if request.nil?
1153
1434
 
@@ -1217,6 +1498,29 @@ module Google
1217
1498
  # @return [::Gapic::Operation]
1218
1499
  #
1219
1500
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1501
+ #
1502
+ # @example Basic example
1503
+ # require "google/cloud/automl/v1"
1504
+ #
1505
+ # # Create a client object. The client can be reused for multiple calls.
1506
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1507
+ #
1508
+ # # Create a request. To set request fields, pass in keyword arguments.
1509
+ # request = Google::Cloud::AutoML::V1::UndeployModelRequest.new
1510
+ #
1511
+ # # Call the undeploy_model method.
1512
+ # result = client.undeploy_model request
1513
+ #
1514
+ # # The returned object is of type Gapic::Operation. You can use it to
1515
+ # # check the status of an operation, cancel it, or wait for results.
1516
+ # # Here is how to wait for a response.
1517
+ # result.wait_until_done! timeout: 60
1518
+ # if result.response?
1519
+ # p result.response
1520
+ # else
1521
+ # puts "No response received."
1522
+ # end
1523
+ #
1220
1524
  def undeploy_model request, options = nil
1221
1525
  raise ::ArgumentError, "request must be provided" if request.nil?
1222
1526
 
@@ -1288,6 +1592,29 @@ module Google
1288
1592
  # @return [::Gapic::Operation]
1289
1593
  #
1290
1594
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1595
+ #
1596
+ # @example Basic example
1597
+ # require "google/cloud/automl/v1"
1598
+ #
1599
+ # # Create a client object. The client can be reused for multiple calls.
1600
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1601
+ #
1602
+ # # Create a request. To set request fields, pass in keyword arguments.
1603
+ # request = Google::Cloud::AutoML::V1::ExportModelRequest.new
1604
+ #
1605
+ # # Call the export_model method.
1606
+ # result = client.export_model request
1607
+ #
1608
+ # # The returned object is of type Gapic::Operation. You can use it to
1609
+ # # check the status of an operation, cancel it, or wait for results.
1610
+ # # Here is how to wait for a response.
1611
+ # result.wait_until_done! timeout: 60
1612
+ # if result.response?
1613
+ # p result.response
1614
+ # else
1615
+ # puts "No response received."
1616
+ # end
1617
+ #
1291
1618
  def export_model request, options = nil
1292
1619
  raise ::ArgumentError, "request must be provided" if request.nil?
1293
1620
 
@@ -1351,6 +1678,22 @@ module Google
1351
1678
  # @return [::Google::Cloud::AutoML::V1::ModelEvaluation]
1352
1679
  #
1353
1680
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1681
+ #
1682
+ # @example Basic example
1683
+ # require "google/cloud/automl/v1"
1684
+ #
1685
+ # # Create a client object. The client can be reused for multiple calls.
1686
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1687
+ #
1688
+ # # Create a request. To set request fields, pass in keyword arguments.
1689
+ # request = Google::Cloud::AutoML::V1::GetModelEvaluationRequest.new
1690
+ #
1691
+ # # Call the get_model_evaluation method.
1692
+ # result = client.get_model_evaluation request
1693
+ #
1694
+ # # The returned object is of type Google::Cloud::AutoML::V1::ModelEvaluation.
1695
+ # p result
1696
+ #
1354
1697
  def get_model_evaluation request, options = nil
1355
1698
  raise ::ArgumentError, "request must be provided" if request.nil?
1356
1699
 
@@ -1434,6 +1777,26 @@ module Google
1434
1777
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1::ModelEvaluation>]
1435
1778
  #
1436
1779
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1780
+ #
1781
+ # @example Basic example
1782
+ # require "google/cloud/automl/v1"
1783
+ #
1784
+ # # Create a client object. The client can be reused for multiple calls.
1785
+ # client = Google::Cloud::AutoML::V1::AutoML::Rest::Client.new
1786
+ #
1787
+ # # Create a request. To set request fields, pass in keyword arguments.
1788
+ # request = Google::Cloud::AutoML::V1::ListModelEvaluationsRequest.new
1789
+ #
1790
+ # # Call the list_model_evaluations method.
1791
+ # result = client.list_model_evaluations request
1792
+ #
1793
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1794
+ # # over elements, and API calls will be issued to fetch pages as needed.
1795
+ # result.each do |item|
1796
+ # # Each element is of type ::Google::Cloud::AutoML::V1::ModelEvaluation.
1797
+ # p item
1798
+ # end
1799
+ #
1437
1800
  def list_model_evaluations request, options = nil
1438
1801
  raise ::ArgumentError, "request must be provided" if request.nil?
1439
1802
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -412,6 +487,29 @@ module Google
412
487
  # @return [::Gapic::Operation]
413
488
  #
414
489
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
490
+ #
491
+ # @example Basic example
492
+ # require "google/longrunning"
493
+ #
494
+ # # Create a client object. The client can be reused for multiple calls.
495
+ # client = Google::Longrunning::Operations::Rest::Client.new
496
+ #
497
+ # # Create a request. To set request fields, pass in keyword arguments.
498
+ # request = Google::Longrunning::WaitOperationRequest.new
499
+ #
500
+ # # Call the wait_operation method.
501
+ # result = client.wait_operation request
502
+ #
503
+ # # The returned object is of type Gapic::Operation. You can use it to
504
+ # # check the status of an operation, cancel it, or wait for results.
505
+ # # Here is how to wait for a response.
506
+ # result.wait_until_done! timeout: 60
507
+ # if result.response?
508
+ # p result.response
509
+ # else
510
+ # puts "No response received."
511
+ # end
512
+ #
415
513
  def wait_operation request, options = nil
416
514
  raise ::ArgumentError, "request must be provided" if request.nil?
417
515
 
@@ -151,7 +151,8 @@ module Google
151
151
  credentials: credentials,
152
152
  endpoint: @config.endpoint,
153
153
  channel_args: @config.channel_args,
154
- interceptors: @config.interceptors
154
+ interceptors: @config.interceptors,
155
+ channel_pool_config: @config.channel_pool
155
156
  )
156
157
  end
157
158
 
@@ -633,6 +634,14 @@ module Google
633
634
  end
634
635
  end
635
636
 
637
+ ##
638
+ # Configuration for the channel pool
639
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
640
+ #
641
+ def channel_pool
642
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
643
+ end
644
+
636
645
  ##
637
646
  # Configuration RPC class for the PredictionService API.
638
647
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -709,6 +710,14 @@ module Google
709
710
  end
710
711
  end
711
712
 
713
+ ##
714
+ # Configuration for the channel pool
715
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
716
+ #
717
+ def channel_pool
718
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
719
+ end
720
+
712
721
  ##
713
722
  # Configuration RPC class for the Operations API.
714
723
  #
@@ -251,6 +251,22 @@ module Google
251
251
  # @return [::Google::Cloud::AutoML::V1::PredictResponse]
252
252
  #
253
253
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
254
+ #
255
+ # @example Basic example
256
+ # require "google/cloud/automl/v1"
257
+ #
258
+ # # Create a client object. The client can be reused for multiple calls.
259
+ # client = Google::Cloud::AutoML::V1::PredictionService::Rest::Client.new
260
+ #
261
+ # # Create a request. To set request fields, pass in keyword arguments.
262
+ # request = Google::Cloud::AutoML::V1::PredictRequest.new
263
+ #
264
+ # # Call the predict method.
265
+ # result = client.predict request
266
+ #
267
+ # # The returned object is of type Google::Cloud::AutoML::V1::PredictResponse.
268
+ # p result
269
+ #
254
270
  def predict request, options = nil
255
271
  raise ::ArgumentError, "request must be provided" if request.nil?
256
272
 
@@ -416,6 +432,29 @@ module Google
416
432
  # @return [::Gapic::Operation]
417
433
  #
418
434
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
435
+ #
436
+ # @example Basic example
437
+ # require "google/cloud/automl/v1"
438
+ #
439
+ # # Create a client object. The client can be reused for multiple calls.
440
+ # client = Google::Cloud::AutoML::V1::PredictionService::Rest::Client.new
441
+ #
442
+ # # Create a request. To set request fields, pass in keyword arguments.
443
+ # request = Google::Cloud::AutoML::V1::BatchPredictRequest.new
444
+ #
445
+ # # Call the batch_predict method.
446
+ # result = client.batch_predict request
447
+ #
448
+ # # The returned object is of type Gapic::Operation. You can use it to
449
+ # # check the status of an operation, cancel it, or wait for results.
450
+ # # Here is how to wait for a response.
451
+ # result.wait_until_done! timeout: 60
452
+ # if result.response?
453
+ # p result.response
454
+ # else
455
+ # puts "No response received."
456
+ # end
457
+ #
419
458
  def batch_predict request, options = nil
420
459
  raise ::ArgumentError, "request must be provided" if request.nil?
421
460
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -412,6 +487,29 @@ module Google
412
487
  # @return [::Gapic::Operation]
413
488
  #
414
489
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
490
+ #
491
+ # @example Basic example
492
+ # require "google/longrunning"
493
+ #
494
+ # # Create a client object. The client can be reused for multiple calls.
495
+ # client = Google::Longrunning::Operations::Rest::Client.new
496
+ #
497
+ # # Create a request. To set request fields, pass in keyword arguments.
498
+ # request = Google::Longrunning::WaitOperationRequest.new
499
+ #
500
+ # # Call the wait_operation method.
501
+ # result = client.wait_operation request
502
+ #
503
+ # # The returned object is of type Gapic::Operation. You can use it to
504
+ # # check the status of an operation, cancel it, or wait for results.
505
+ # # Here is how to wait for a response.
506
+ # result.wait_until_done! timeout: 60
507
+ # if result.response?
508
+ # p result.response
509
+ # else
510
+ # puts "No response received."
511
+ # end
512
+ #
415
513
  def wait_operation request, options = nil
416
514
  raise ::ArgumentError, "request must be provided" if request.nil?
417
515
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AutoML
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  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.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
266
266
  - !ruby/object:Gem::Version
267
267
  version: '0'
268
268
  requirements: []
269
- rubygems_version: 3.4.2
269
+ rubygems_version: 3.4.19
270
270
  signing_key:
271
271
  specification_version: 4
272
272
  summary: Train high-quality custom machine learning models with minimum effort and