google-cloud-automl-v1beta1 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +10 -1
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +10 -1
- data/lib/google/cloud/automl/v1beta1/automl/rest/client.rb +467 -0
- data/lib/google/cloud/automl/v1beta1/automl/rest/operations.rb +98 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +10 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +10 -1
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/client.rb +39 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/operations.rb +98 -0
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bf1b96f77dedc0dbaba52ba692cf645236765a3d3a66af8a58e074d8ca3c774
|
4
|
+
data.tar.gz: 6e7cfba1204e5ee9c70eb42f2f1ede66a6d49e41fda61b4cc91f980f6c706ae9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffe6a1cf5e7867d3f6debf6013f990ad73cf2b0959336bfeb3d8ea99fd5e1d6a5c81fd877ccc8dcb7fe4e1d730408e239b246de358161bfb6d118d06de14d289
|
7
|
+
data.tar.gz: c64a0f26e21756799b5db97e510fd205a8425da5d2a2c19f927b2d0d58a11ed1bb36f083ce222d0f3d4bed72a77270e78d4949984d80c7f15426d3c098a9d291
|
@@ -241,7 +241,8 @@ module Google
|
|
241
241
|
credentials: credentials,
|
242
242
|
endpoint: @config.endpoint,
|
243
243
|
channel_args: @config.channel_args,
|
244
|
-
interceptors: @config.interceptors
|
244
|
+
interceptors: @config.interceptors,
|
245
|
+
channel_pool_config: @config.channel_pool
|
245
246
|
)
|
246
247
|
end
|
247
248
|
|
@@ -2677,6 +2678,14 @@ module Google
|
|
2677
2678
|
end
|
2678
2679
|
end
|
2679
2680
|
|
2681
|
+
##
|
2682
|
+
# Configuration for the channel pool
|
2683
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
2684
|
+
#
|
2685
|
+
def channel_pool
|
2686
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
2687
|
+
end
|
2688
|
+
|
2680
2689
|
##
|
2681
2690
|
# Configuration RPC class for the AutoMl API.
|
2682
2691
|
#
|
@@ -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
|
#
|
@@ -274,6 +274,22 @@ module Google
|
|
274
274
|
# @return [::Google::Cloud::AutoML::V1beta1::Dataset]
|
275
275
|
#
|
276
276
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
277
|
+
#
|
278
|
+
# @example Basic example
|
279
|
+
# require "google/cloud/automl/v1beta1"
|
280
|
+
#
|
281
|
+
# # Create a client object. The client can be reused for multiple calls.
|
282
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
283
|
+
#
|
284
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
285
|
+
# request = Google::Cloud::AutoML::V1beta1::CreateDatasetRequest.new
|
286
|
+
#
|
287
|
+
# # Call the create_dataset method.
|
288
|
+
# result = client.create_dataset request
|
289
|
+
#
|
290
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
291
|
+
# p result
|
292
|
+
#
|
277
293
|
def create_dataset request, options = nil
|
278
294
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
279
295
|
|
@@ -336,6 +352,22 @@ module Google
|
|
336
352
|
# @return [::Google::Cloud::AutoML::V1beta1::Dataset]
|
337
353
|
#
|
338
354
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
355
|
+
#
|
356
|
+
# @example Basic example
|
357
|
+
# require "google/cloud/automl/v1beta1"
|
358
|
+
#
|
359
|
+
# # Create a client object. The client can be reused for multiple calls.
|
360
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
361
|
+
#
|
362
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
363
|
+
# request = Google::Cloud::AutoML::V1beta1::GetDatasetRequest.new
|
364
|
+
#
|
365
|
+
# # Call the get_dataset method.
|
366
|
+
# result = client.get_dataset request
|
367
|
+
#
|
368
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
369
|
+
# p result
|
370
|
+
#
|
339
371
|
def get_dataset request, options = nil
|
340
372
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
341
373
|
|
@@ -415,6 +447,26 @@ module Google
|
|
415
447
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::Dataset>]
|
416
448
|
#
|
417
449
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
450
|
+
#
|
451
|
+
# @example Basic example
|
452
|
+
# require "google/cloud/automl/v1beta1"
|
453
|
+
#
|
454
|
+
# # Create a client object. The client can be reused for multiple calls.
|
455
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
456
|
+
#
|
457
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
458
|
+
# request = Google::Cloud::AutoML::V1beta1::ListDatasetsRequest.new
|
459
|
+
#
|
460
|
+
# # Call the list_datasets method.
|
461
|
+
# result = client.list_datasets request
|
462
|
+
#
|
463
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
464
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
465
|
+
# result.each do |item|
|
466
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Dataset.
|
467
|
+
# p item
|
468
|
+
# end
|
469
|
+
#
|
418
470
|
def list_datasets request, options = nil
|
419
471
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
420
472
|
|
@@ -480,6 +532,22 @@ module Google
|
|
480
532
|
# @return [::Google::Cloud::AutoML::V1beta1::Dataset]
|
481
533
|
#
|
482
534
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
535
|
+
#
|
536
|
+
# @example Basic example
|
537
|
+
# require "google/cloud/automl/v1beta1"
|
538
|
+
#
|
539
|
+
# # Create a client object. The client can be reused for multiple calls.
|
540
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
541
|
+
#
|
542
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
543
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest.new
|
544
|
+
#
|
545
|
+
# # Call the update_dataset method.
|
546
|
+
# result = client.update_dataset request
|
547
|
+
#
|
548
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
549
|
+
# p result
|
550
|
+
#
|
483
551
|
def update_dataset request, options = nil
|
484
552
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
485
553
|
|
@@ -546,6 +614,29 @@ module Google
|
|
546
614
|
# @return [::Gapic::Operation]
|
547
615
|
#
|
548
616
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
617
|
+
#
|
618
|
+
# @example Basic example
|
619
|
+
# require "google/cloud/automl/v1beta1"
|
620
|
+
#
|
621
|
+
# # Create a client object. The client can be reused for multiple calls.
|
622
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
623
|
+
#
|
624
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
625
|
+
# request = Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest.new
|
626
|
+
#
|
627
|
+
# # Call the delete_dataset method.
|
628
|
+
# result = client.delete_dataset request
|
629
|
+
#
|
630
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
631
|
+
# # check the status of an operation, cancel it, or wait for results.
|
632
|
+
# # Here is how to wait for a response.
|
633
|
+
# result.wait_until_done! timeout: 60
|
634
|
+
# if result.response?
|
635
|
+
# p result.response
|
636
|
+
# else
|
637
|
+
# puts "No response received."
|
638
|
+
# end
|
639
|
+
#
|
549
640
|
def delete_dataset request, options = nil
|
550
641
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
551
642
|
|
@@ -621,6 +712,29 @@ module Google
|
|
621
712
|
# @return [::Gapic::Operation]
|
622
713
|
#
|
623
714
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
715
|
+
#
|
716
|
+
# @example Basic example
|
717
|
+
# require "google/cloud/automl/v1beta1"
|
718
|
+
#
|
719
|
+
# # Create a client object. The client can be reused for multiple calls.
|
720
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
721
|
+
#
|
722
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
723
|
+
# request = Google::Cloud::AutoML::V1beta1::ImportDataRequest.new
|
724
|
+
#
|
725
|
+
# # Call the import_data method.
|
726
|
+
# result = client.import_data request
|
727
|
+
#
|
728
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
729
|
+
# # check the status of an operation, cancel it, or wait for results.
|
730
|
+
# # Here is how to wait for a response.
|
731
|
+
# result.wait_until_done! timeout: 60
|
732
|
+
# if result.response?
|
733
|
+
# p result.response
|
734
|
+
# else
|
735
|
+
# puts "No response received."
|
736
|
+
# end
|
737
|
+
#
|
624
738
|
def import_data request, options = nil
|
625
739
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
626
740
|
|
@@ -688,6 +802,29 @@ module Google
|
|
688
802
|
# @return [::Gapic::Operation]
|
689
803
|
#
|
690
804
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
805
|
+
#
|
806
|
+
# @example Basic example
|
807
|
+
# require "google/cloud/automl/v1beta1"
|
808
|
+
#
|
809
|
+
# # Create a client object. The client can be reused for multiple calls.
|
810
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
811
|
+
#
|
812
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
813
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportDataRequest.new
|
814
|
+
#
|
815
|
+
# # Call the export_data method.
|
816
|
+
# result = client.export_data request
|
817
|
+
#
|
818
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
819
|
+
# # check the status of an operation, cancel it, or wait for results.
|
820
|
+
# # Here is how to wait for a response.
|
821
|
+
# result.wait_until_done! timeout: 60
|
822
|
+
# if result.response?
|
823
|
+
# p result.response
|
824
|
+
# else
|
825
|
+
# puts "No response received."
|
826
|
+
# end
|
827
|
+
#
|
691
828
|
def export_data request, options = nil
|
692
829
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
693
830
|
|
@@ -751,6 +888,22 @@ module Google
|
|
751
888
|
# @return [::Google::Cloud::AutoML::V1beta1::AnnotationSpec]
|
752
889
|
#
|
753
890
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
891
|
+
#
|
892
|
+
# @example Basic example
|
893
|
+
# require "google/cloud/automl/v1beta1"
|
894
|
+
#
|
895
|
+
# # Create a client object. The client can be reused for multiple calls.
|
896
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
897
|
+
#
|
898
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
899
|
+
# request = Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest.new
|
900
|
+
#
|
901
|
+
# # Call the get_annotation_spec method.
|
902
|
+
# result = client.get_annotation_spec request
|
903
|
+
#
|
904
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::AnnotationSpec.
|
905
|
+
# p result
|
906
|
+
#
|
754
907
|
def get_annotation_spec request, options = nil
|
755
908
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
756
909
|
|
@@ -815,6 +968,22 @@ module Google
|
|
815
968
|
# @return [::Google::Cloud::AutoML::V1beta1::TableSpec]
|
816
969
|
#
|
817
970
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
971
|
+
#
|
972
|
+
# @example Basic example
|
973
|
+
# require "google/cloud/automl/v1beta1"
|
974
|
+
#
|
975
|
+
# # Create a client object. The client can be reused for multiple calls.
|
976
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
977
|
+
#
|
978
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
979
|
+
# request = Google::Cloud::AutoML::V1beta1::GetTableSpecRequest.new
|
980
|
+
#
|
981
|
+
# # Call the get_table_spec method.
|
982
|
+
# result = client.get_table_spec request
|
983
|
+
#
|
984
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::TableSpec.
|
985
|
+
# p result
|
986
|
+
#
|
818
987
|
def get_table_spec request, options = nil
|
819
988
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
820
989
|
|
@@ -889,6 +1058,26 @@ module Google
|
|
889
1058
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::TableSpec>]
|
890
1059
|
#
|
891
1060
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1061
|
+
#
|
1062
|
+
# @example Basic example
|
1063
|
+
# require "google/cloud/automl/v1beta1"
|
1064
|
+
#
|
1065
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1066
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1067
|
+
#
|
1068
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1069
|
+
# request = Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest.new
|
1070
|
+
#
|
1071
|
+
# # Call the list_table_specs method.
|
1072
|
+
# result = client.list_table_specs request
|
1073
|
+
#
|
1074
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1075
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1076
|
+
# result.each do |item|
|
1077
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::TableSpec.
|
1078
|
+
# p item
|
1079
|
+
# end
|
1080
|
+
#
|
892
1081
|
def list_table_specs request, options = nil
|
893
1082
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
894
1083
|
|
@@ -954,6 +1143,22 @@ module Google
|
|
954
1143
|
# @return [::Google::Cloud::AutoML::V1beta1::TableSpec]
|
955
1144
|
#
|
956
1145
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1146
|
+
#
|
1147
|
+
# @example Basic example
|
1148
|
+
# require "google/cloud/automl/v1beta1"
|
1149
|
+
#
|
1150
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1151
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1152
|
+
#
|
1153
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1154
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest.new
|
1155
|
+
#
|
1156
|
+
# # Call the update_table_spec method.
|
1157
|
+
# result = client.update_table_spec request
|
1158
|
+
#
|
1159
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::TableSpec.
|
1160
|
+
# p result
|
1161
|
+
#
|
957
1162
|
def update_table_spec request, options = nil
|
958
1163
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
959
1164
|
|
@@ -1018,6 +1223,22 @@ module Google
|
|
1018
1223
|
# @return [::Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1019
1224
|
#
|
1020
1225
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1226
|
+
#
|
1227
|
+
# @example Basic example
|
1228
|
+
# require "google/cloud/automl/v1beta1"
|
1229
|
+
#
|
1230
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1231
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1232
|
+
#
|
1233
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1234
|
+
# request = Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest.new
|
1235
|
+
#
|
1236
|
+
# # Call the get_column_spec method.
|
1237
|
+
# result = client.get_column_spec request
|
1238
|
+
#
|
1239
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1240
|
+
# p result
|
1241
|
+
#
|
1021
1242
|
def get_column_spec request, options = nil
|
1022
1243
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1023
1244
|
|
@@ -1092,6 +1313,26 @@ module Google
|
|
1092
1313
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::ColumnSpec>]
|
1093
1314
|
#
|
1094
1315
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1316
|
+
#
|
1317
|
+
# @example Basic example
|
1318
|
+
# require "google/cloud/automl/v1beta1"
|
1319
|
+
#
|
1320
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1321
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1322
|
+
#
|
1323
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1324
|
+
# request = Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest.new
|
1325
|
+
#
|
1326
|
+
# # Call the list_column_specs method.
|
1327
|
+
# result = client.list_column_specs request
|
1328
|
+
#
|
1329
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1330
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1331
|
+
# result.each do |item|
|
1332
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1333
|
+
# p item
|
1334
|
+
# end
|
1335
|
+
#
|
1095
1336
|
def list_column_specs request, options = nil
|
1096
1337
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1097
1338
|
|
@@ -1157,6 +1398,22 @@ module Google
|
|
1157
1398
|
# @return [::Google::Cloud::AutoML::V1beta1::ColumnSpec]
|
1158
1399
|
#
|
1159
1400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1401
|
+
#
|
1402
|
+
# @example Basic example
|
1403
|
+
# require "google/cloud/automl/v1beta1"
|
1404
|
+
#
|
1405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1406
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1407
|
+
#
|
1408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1409
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest.new
|
1410
|
+
#
|
1411
|
+
# # Call the update_column_spec method.
|
1412
|
+
# result = client.update_column_spec request
|
1413
|
+
#
|
1414
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1415
|
+
# p result
|
1416
|
+
#
|
1160
1417
|
def update_column_spec request, options = nil
|
1161
1418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1162
1419
|
|
@@ -1225,6 +1482,29 @@ module Google
|
|
1225
1482
|
# @return [::Gapic::Operation]
|
1226
1483
|
#
|
1227
1484
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1485
|
+
#
|
1486
|
+
# @example Basic example
|
1487
|
+
# require "google/cloud/automl/v1beta1"
|
1488
|
+
#
|
1489
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1490
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1491
|
+
#
|
1492
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1493
|
+
# request = Google::Cloud::AutoML::V1beta1::CreateModelRequest.new
|
1494
|
+
#
|
1495
|
+
# # Call the create_model method.
|
1496
|
+
# result = client.create_model request
|
1497
|
+
#
|
1498
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1499
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1500
|
+
# # Here is how to wait for a response.
|
1501
|
+
# result.wait_until_done! timeout: 60
|
1502
|
+
# if result.response?
|
1503
|
+
# p result.response
|
1504
|
+
# else
|
1505
|
+
# puts "No response received."
|
1506
|
+
# end
|
1507
|
+
#
|
1228
1508
|
def create_model request, options = nil
|
1229
1509
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1230
1510
|
|
@@ -1288,6 +1568,22 @@ module Google
|
|
1288
1568
|
# @return [::Google::Cloud::AutoML::V1beta1::Model]
|
1289
1569
|
#
|
1290
1570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1571
|
+
#
|
1572
|
+
# @example Basic example
|
1573
|
+
# require "google/cloud/automl/v1beta1"
|
1574
|
+
#
|
1575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1576
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1577
|
+
#
|
1578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1579
|
+
# request = Google::Cloud::AutoML::V1beta1::GetModelRequest.new
|
1580
|
+
#
|
1581
|
+
# # Call the get_model method.
|
1582
|
+
# result = client.get_model request
|
1583
|
+
#
|
1584
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Model.
|
1585
|
+
# p result
|
1586
|
+
#
|
1291
1587
|
def get_model request, options = nil
|
1292
1588
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1293
1589
|
|
@@ -1367,6 +1663,26 @@ module Google
|
|
1367
1663
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::Model>]
|
1368
1664
|
#
|
1369
1665
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1666
|
+
#
|
1667
|
+
# @example Basic example
|
1668
|
+
# require "google/cloud/automl/v1beta1"
|
1669
|
+
#
|
1670
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1671
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1672
|
+
#
|
1673
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1674
|
+
# request = Google::Cloud::AutoML::V1beta1::ListModelsRequest.new
|
1675
|
+
#
|
1676
|
+
# # Call the list_models method.
|
1677
|
+
# result = client.list_models request
|
1678
|
+
#
|
1679
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1680
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1681
|
+
# result.each do |item|
|
1682
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Model.
|
1683
|
+
# p item
|
1684
|
+
# end
|
1685
|
+
#
|
1370
1686
|
def list_models request, options = nil
|
1371
1687
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1372
1688
|
|
@@ -1434,6 +1750,29 @@ module Google
|
|
1434
1750
|
# @return [::Gapic::Operation]
|
1435
1751
|
#
|
1436
1752
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1753
|
+
#
|
1754
|
+
# @example Basic example
|
1755
|
+
# require "google/cloud/automl/v1beta1"
|
1756
|
+
#
|
1757
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1758
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1759
|
+
#
|
1760
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1761
|
+
# request = Google::Cloud::AutoML::V1beta1::DeleteModelRequest.new
|
1762
|
+
#
|
1763
|
+
# # Call the delete_model method.
|
1764
|
+
# result = client.delete_model request
|
1765
|
+
#
|
1766
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1767
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1768
|
+
# # Here is how to wait for a response.
|
1769
|
+
# result.wait_until_done! timeout: 60
|
1770
|
+
# if result.response?
|
1771
|
+
# p result.response
|
1772
|
+
# else
|
1773
|
+
# puts "No response received."
|
1774
|
+
# end
|
1775
|
+
#
|
1437
1776
|
def delete_model request, options = nil
|
1438
1777
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1439
1778
|
|
@@ -1512,6 +1851,29 @@ module Google
|
|
1512
1851
|
# @return [::Gapic::Operation]
|
1513
1852
|
#
|
1514
1853
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1854
|
+
#
|
1855
|
+
# @example Basic example
|
1856
|
+
# require "google/cloud/automl/v1beta1"
|
1857
|
+
#
|
1858
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1859
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1860
|
+
#
|
1861
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1862
|
+
# request = Google::Cloud::AutoML::V1beta1::DeployModelRequest.new
|
1863
|
+
#
|
1864
|
+
# # Call the deploy_model method.
|
1865
|
+
# result = client.deploy_model request
|
1866
|
+
#
|
1867
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1868
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1869
|
+
# # Here is how to wait for a response.
|
1870
|
+
# result.wait_until_done! timeout: 60
|
1871
|
+
# if result.response?
|
1872
|
+
# p result.response
|
1873
|
+
# else
|
1874
|
+
# puts "No response received."
|
1875
|
+
# end
|
1876
|
+
#
|
1515
1877
|
def deploy_model request, options = nil
|
1516
1878
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1517
1879
|
|
@@ -1581,6 +1943,29 @@ module Google
|
|
1581
1943
|
# @return [::Gapic::Operation]
|
1582
1944
|
#
|
1583
1945
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1946
|
+
#
|
1947
|
+
# @example Basic example
|
1948
|
+
# require "google/cloud/automl/v1beta1"
|
1949
|
+
#
|
1950
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1951
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
1952
|
+
#
|
1953
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1954
|
+
# request = Google::Cloud::AutoML::V1beta1::UndeployModelRequest.new
|
1955
|
+
#
|
1956
|
+
# # Call the undeploy_model method.
|
1957
|
+
# result = client.undeploy_model request
|
1958
|
+
#
|
1959
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1960
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1961
|
+
# # Here is how to wait for a response.
|
1962
|
+
# result.wait_until_done! timeout: 60
|
1963
|
+
# if result.response?
|
1964
|
+
# p result.response
|
1965
|
+
# else
|
1966
|
+
# puts "No response received."
|
1967
|
+
# end
|
1968
|
+
#
|
1584
1969
|
def undeploy_model request, options = nil
|
1585
1970
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1586
1971
|
|
@@ -1653,6 +2038,29 @@ module Google
|
|
1653
2038
|
# @return [::Gapic::Operation]
|
1654
2039
|
#
|
1655
2040
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2041
|
+
#
|
2042
|
+
# @example Basic example
|
2043
|
+
# require "google/cloud/automl/v1beta1"
|
2044
|
+
#
|
2045
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2046
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
2047
|
+
#
|
2048
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2049
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportModelRequest.new
|
2050
|
+
#
|
2051
|
+
# # Call the export_model method.
|
2052
|
+
# result = client.export_model request
|
2053
|
+
#
|
2054
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2055
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2056
|
+
# # Here is how to wait for a response.
|
2057
|
+
# result.wait_until_done! timeout: 60
|
2058
|
+
# if result.response?
|
2059
|
+
# p result.response
|
2060
|
+
# else
|
2061
|
+
# puts "No response received."
|
2062
|
+
# end
|
2063
|
+
#
|
1656
2064
|
def export_model request, options = nil
|
1657
2065
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1658
2066
|
|
@@ -1732,6 +2140,29 @@ module Google
|
|
1732
2140
|
# @return [::Gapic::Operation]
|
1733
2141
|
#
|
1734
2142
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2143
|
+
#
|
2144
|
+
# @example Basic example
|
2145
|
+
# require "google/cloud/automl/v1beta1"
|
2146
|
+
#
|
2147
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2148
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
2149
|
+
#
|
2150
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2151
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest.new
|
2152
|
+
#
|
2153
|
+
# # Call the export_evaluated_examples method.
|
2154
|
+
# result = client.export_evaluated_examples request
|
2155
|
+
#
|
2156
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2157
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2158
|
+
# # Here is how to wait for a response.
|
2159
|
+
# result.wait_until_done! timeout: 60
|
2160
|
+
# if result.response?
|
2161
|
+
# p result.response
|
2162
|
+
# else
|
2163
|
+
# puts "No response received."
|
2164
|
+
# end
|
2165
|
+
#
|
1735
2166
|
def export_evaluated_examples request, options = nil
|
1736
2167
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1737
2168
|
|
@@ -1795,6 +2226,22 @@ module Google
|
|
1795
2226
|
# @return [::Google::Cloud::AutoML::V1beta1::ModelEvaluation]
|
1796
2227
|
#
|
1797
2228
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2229
|
+
#
|
2230
|
+
# @example Basic example
|
2231
|
+
# require "google/cloud/automl/v1beta1"
|
2232
|
+
#
|
2233
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2234
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
2235
|
+
#
|
2236
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2237
|
+
# request = Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest.new
|
2238
|
+
#
|
2239
|
+
# # Call the get_model_evaluation method.
|
2240
|
+
# result = client.get_model_evaluation request
|
2241
|
+
#
|
2242
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ModelEvaluation.
|
2243
|
+
# p result
|
2244
|
+
#
|
1798
2245
|
def get_model_evaluation request, options = nil
|
1799
2246
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1800
2247
|
|
@@ -1878,6 +2325,26 @@ module Google
|
|
1878
2325
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AutoML::V1beta1::ModelEvaluation>]
|
1879
2326
|
#
|
1880
2327
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2328
|
+
#
|
2329
|
+
# @example Basic example
|
2330
|
+
# require "google/cloud/automl/v1beta1"
|
2331
|
+
#
|
2332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2333
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Rest::Client.new
|
2334
|
+
#
|
2335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2336
|
+
# request = Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest.new
|
2337
|
+
#
|
2338
|
+
# # Call the list_model_evaluations method.
|
2339
|
+
# result = client.list_model_evaluations request
|
2340
|
+
#
|
2341
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2342
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2343
|
+
# result.each do |item|
|
2344
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ModelEvaluation.
|
2345
|
+
# p item
|
2346
|
+
# end
|
2347
|
+
#
|
1881
2348
|
def list_model_evaluations request, options = nil
|
1882
2349
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1883
2350
|
|
@@ -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
|
|
@@ -590,6 +591,14 @@ module Google
|
|
590
591
|
end
|
591
592
|
end
|
592
593
|
|
594
|
+
##
|
595
|
+
# Configuration for the channel pool
|
596
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
597
|
+
#
|
598
|
+
def channel_pool
|
599
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
600
|
+
end
|
601
|
+
|
593
602
|
##
|
594
603
|
# Configuration RPC class for the PredictionService API.
|
595
604
|
#
|
@@ -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
|
#
|
@@ -224,6 +224,22 @@ module Google
|
|
224
224
|
# @return [::Google::Cloud::AutoML::V1beta1::PredictResponse]
|
225
225
|
#
|
226
226
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
227
|
+
#
|
228
|
+
# @example Basic example
|
229
|
+
# require "google/cloud/automl/v1beta1"
|
230
|
+
#
|
231
|
+
# # Create a client object. The client can be reused for multiple calls.
|
232
|
+
# client = Google::Cloud::AutoML::V1beta1::PredictionService::Rest::Client.new
|
233
|
+
#
|
234
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
235
|
+
# request = Google::Cloud::AutoML::V1beta1::PredictRequest.new
|
236
|
+
#
|
237
|
+
# # Call the predict method.
|
238
|
+
# result = client.predict request
|
239
|
+
#
|
240
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::PredictResponse.
|
241
|
+
# p result
|
242
|
+
#
|
227
243
|
def predict request, options = nil
|
228
244
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
229
245
|
|
@@ -373,6 +389,29 @@ module Google
|
|
373
389
|
# @return [::Gapic::Operation]
|
374
390
|
#
|
375
391
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
392
|
+
#
|
393
|
+
# @example Basic example
|
394
|
+
# require "google/cloud/automl/v1beta1"
|
395
|
+
#
|
396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
397
|
+
# client = Google::Cloud::AutoML::V1beta1::PredictionService::Rest::Client.new
|
398
|
+
#
|
399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
400
|
+
# request = Google::Cloud::AutoML::V1beta1::BatchPredictRequest.new
|
401
|
+
#
|
402
|
+
# # Call the batch_predict method.
|
403
|
+
# result = client.batch_predict request
|
404
|
+
#
|
405
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
406
|
+
# # check the status of an operation, cancel it, or wait for results.
|
407
|
+
# # Here is how to wait for a response.
|
408
|
+
# result.wait_until_done! timeout: 60
|
409
|
+
# if result.response?
|
410
|
+
# p result.response
|
411
|
+
# else
|
412
|
+
# puts "No response received."
|
413
|
+
# end
|
414
|
+
#
|
376
415
|
def batch_predict request, options = nil
|
377
416
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
378
417
|
|
@@ -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
|
|
@@ -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-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.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-
|
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
|
+
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.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -285,7 +285,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
285
|
- !ruby/object:Gem::Version
|
286
286
|
version: '0'
|
287
287
|
requirements: []
|
288
|
-
rubygems_version: 3.4.
|
288
|
+
rubygems_version: 3.4.19
|
289
289
|
signing_key:
|
290
290
|
specification_version: 4
|
291
291
|
summary: Train high-quality custom machine learning models with minimum effort and
|