google-cloud-automl-v1beta1 0.7.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/README.md +1 -1
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +30 -15
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +24 -6
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +16 -5
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +15 -4
- data/lib/google/cloud/automl/v1beta1/automl/rest/client.rb +473 -4
- data/lib/google/cloud/automl/v1beta1/automl/rest/operations.rb +108 -8
- data/lib/google/cloud/automl/v1beta1/automl/rest/service_stub.rb +24 -24
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +25 -47
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +26 -13
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +28 -61
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +24 -54
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +24 -22
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +30 -20
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +26 -33
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +24 -8
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +24 -29
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +24 -57
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +31 -17
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +30 -25
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +27 -59
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +16 -5
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +15 -4
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/client.rb +45 -4
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/operations.rb +108 -8
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/service_stub.rb +2 -2
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +27 -20
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +24 -5
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +24 -8
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +32 -125
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +25 -10
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +29 -34
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +25 -5
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +25 -17
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +24 -17
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +24 -6
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +25 -15
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +25 -17
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +24 -9
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
@@ -216,7 +216,7 @@ module Google
|
|
216
216
|
credentials = @config.credentials
|
217
217
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
218
218
|
# but only if the default endpoint does not have a region prefix.
|
219
|
-
enable_self_signed_jwt = @config.endpoint ==
|
219
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
220
220
|
!@config.endpoint.split(".").first.include?("-")
|
221
221
|
credentials ||= Credentials.default scope: @config.scope,
|
222
222
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -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
|
|
@@ -1952,9 +2419,9 @@ module Google
|
|
1952
2419
|
# * (`String`) The path to a service account key file in JSON format
|
1953
2420
|
# * (`Hash`) A service account key as a Hash
|
1954
2421
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
1955
|
-
# (see the [googleauth docs](https://
|
2422
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
1956
2423
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
1957
|
-
# (see the [signet docs](https://
|
2424
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
1958
2425
|
# * (`nil`) indicating no credentials
|
1959
2426
|
# @return [::Object]
|
1960
2427
|
# @!attribute [rw] scope
|
@@ -1987,7 +2454,9 @@ module Google
|
|
1987
2454
|
class Configuration
|
1988
2455
|
extend ::Gapic::Config
|
1989
2456
|
|
1990
|
-
|
2457
|
+
DEFAULT_ENDPOINT = "automl.googleapis.com"
|
2458
|
+
|
2459
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
1991
2460
|
config_attr :credentials, nil do |value|
|
1992
2461
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
1993
2462
|
allowed.any? { |klass| klass === value }
|