google-cloud-automl-v1beta1 0.5.3 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +579 -76
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +118 -12
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +48 -6
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +118 -12
- data/lib/google/cloud/automl/v1beta1/prediction_service_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service_services_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/service_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/service_services_pb.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +1 -0
- data/lib/google/cloud/automl/v1beta1.rb +2 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/automl/v1beta1/service.rb +5 -4
- data/proto_docs/google/protobuf/any.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +2 -2
- metadata +12 -12
@@ -232,6 +232,7 @@ module Google
|
|
232
232
|
|
233
233
|
@operations_client = Operations.new do |config|
|
234
234
|
config.credentials = credentials
|
235
|
+
config.quota_project = @quota_project_id
|
235
236
|
config.endpoint = @config.endpoint
|
236
237
|
end
|
237
238
|
|
@@ -284,6 +285,21 @@ module Google
|
|
284
285
|
#
|
285
286
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
286
287
|
#
|
288
|
+
# @example Basic example
|
289
|
+
# require "google/cloud/automl/v1beta1"
|
290
|
+
#
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
292
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
293
|
+
#
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
295
|
+
# request = Google::Cloud::AutoML::V1beta1::CreateDatasetRequest.new
|
296
|
+
#
|
297
|
+
# # Call the create_dataset method.
|
298
|
+
# result = client.create_dataset request
|
299
|
+
#
|
300
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
301
|
+
# p result
|
302
|
+
#
|
287
303
|
def create_dataset request, options = nil
|
288
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
289
305
|
|
@@ -301,9 +317,11 @@ module Google
|
|
301
317
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
302
318
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
303
319
|
|
304
|
-
header_params = {
|
305
|
-
|
306
|
-
|
320
|
+
header_params = {}
|
321
|
+
if request.parent
|
322
|
+
header_params["parent"] = request.parent
|
323
|
+
end
|
324
|
+
|
307
325
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
308
326
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
309
327
|
|
@@ -352,6 +370,21 @@ module Google
|
|
352
370
|
#
|
353
371
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
354
372
|
#
|
373
|
+
# @example Basic example
|
374
|
+
# require "google/cloud/automl/v1beta1"
|
375
|
+
#
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
377
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
378
|
+
#
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
380
|
+
# request = Google::Cloud::AutoML::V1beta1::GetDatasetRequest.new
|
381
|
+
#
|
382
|
+
# # Call the get_dataset method.
|
383
|
+
# result = client.get_dataset request
|
384
|
+
#
|
385
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
386
|
+
# p result
|
387
|
+
#
|
355
388
|
def get_dataset request, options = nil
|
356
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
357
390
|
|
@@ -369,9 +402,11 @@ module Google
|
|
369
402
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
370
403
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
371
404
|
|
372
|
-
header_params = {
|
373
|
-
|
374
|
-
|
405
|
+
header_params = {}
|
406
|
+
if request.name
|
407
|
+
header_params["name"] = request.name
|
408
|
+
end
|
409
|
+
|
375
410
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
376
411
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
377
412
|
|
@@ -415,10 +450,11 @@ module Google
|
|
415
450
|
# An expression for filtering the results of the request.
|
416
451
|
#
|
417
452
|
# * `dataset_metadata` - for existence of the case (e.g.
|
418
|
-
# image_classification_dataset_metadata
|
453
|
+
# `image_classification_dataset_metadata:*`). Some examples of
|
454
|
+
# using the filter are:
|
419
455
|
#
|
420
456
|
# * `translation_dataset_metadata:*` --> The dataset has
|
421
|
-
# translation_dataset_metadata
|
457
|
+
# `translation_dataset_metadata`.
|
422
458
|
# @param page_size [::Integer]
|
423
459
|
# Requested page size. Server may return fewer results than requested.
|
424
460
|
# If unspecified, server will pick a default size.
|
@@ -436,6 +472,27 @@ module Google
|
|
436
472
|
#
|
437
473
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
438
474
|
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/automl/v1beta1"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::AutoML::V1beta1::ListDatasetsRequest.new
|
483
|
+
#
|
484
|
+
# # Call the list_datasets method.
|
485
|
+
# result = client.list_datasets request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
488
|
+
# # iterate over all elements by calling #each, and the enumerable
|
489
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
490
|
+
# # methods are also available for managing paging directly.
|
491
|
+
# result.each do |response|
|
492
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Dataset.
|
493
|
+
# p response
|
494
|
+
# end
|
495
|
+
#
|
439
496
|
def list_datasets request, options = nil
|
440
497
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
441
498
|
|
@@ -453,9 +510,11 @@ module Google
|
|
453
510
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
454
511
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
455
512
|
|
456
|
-
header_params = {
|
457
|
-
|
458
|
-
|
513
|
+
header_params = {}
|
514
|
+
if request.parent
|
515
|
+
header_params["parent"] = request.parent
|
516
|
+
end
|
517
|
+
|
459
518
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
460
519
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
461
520
|
|
@@ -507,6 +566,21 @@ module Google
|
|
507
566
|
#
|
508
567
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
509
568
|
#
|
569
|
+
# @example Basic example
|
570
|
+
# require "google/cloud/automl/v1beta1"
|
571
|
+
#
|
572
|
+
# # Create a client object. The client can be reused for multiple calls.
|
573
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
574
|
+
#
|
575
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
576
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateDatasetRequest.new
|
577
|
+
#
|
578
|
+
# # Call the update_dataset method.
|
579
|
+
# result = client.update_dataset request
|
580
|
+
#
|
581
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Dataset.
|
582
|
+
# p result
|
583
|
+
#
|
510
584
|
def update_dataset request, options = nil
|
511
585
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
512
586
|
|
@@ -524,9 +598,11 @@ module Google
|
|
524
598
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
525
599
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
526
600
|
|
527
|
-
header_params = {
|
528
|
-
|
529
|
-
|
601
|
+
header_params = {}
|
602
|
+
if request.dataset&.name
|
603
|
+
header_params["dataset.name"] = request.dataset.name
|
604
|
+
end
|
605
|
+
|
530
606
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
531
607
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
532
608
|
|
@@ -579,6 +655,28 @@ module Google
|
|
579
655
|
#
|
580
656
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
581
657
|
#
|
658
|
+
# @example Basic example
|
659
|
+
# require "google/cloud/automl/v1beta1"
|
660
|
+
#
|
661
|
+
# # Create a client object. The client can be reused for multiple calls.
|
662
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
663
|
+
#
|
664
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
665
|
+
# request = Google::Cloud::AutoML::V1beta1::DeleteDatasetRequest.new
|
666
|
+
#
|
667
|
+
# # Call the delete_dataset method.
|
668
|
+
# result = client.delete_dataset request
|
669
|
+
#
|
670
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
671
|
+
# # object to check the status of an operation, cancel it, or wait
|
672
|
+
# # for results. Here is how to block until completion:
|
673
|
+
# result.wait_until_done! timeout: 60
|
674
|
+
# if result.response?
|
675
|
+
# p result.response
|
676
|
+
# else
|
677
|
+
# puts "Error!"
|
678
|
+
# end
|
679
|
+
#
|
582
680
|
def delete_dataset request, options = nil
|
583
681
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
584
682
|
|
@@ -596,9 +694,11 @@ module Google
|
|
596
694
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
597
695
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
598
696
|
|
599
|
-
header_params = {
|
600
|
-
|
601
|
-
|
697
|
+
header_params = {}
|
698
|
+
if request.name
|
699
|
+
header_params["name"] = request.name
|
700
|
+
end
|
701
|
+
|
602
702
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
603
703
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
604
704
|
|
@@ -660,6 +760,28 @@ module Google
|
|
660
760
|
#
|
661
761
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
662
762
|
#
|
763
|
+
# @example Basic example
|
764
|
+
# require "google/cloud/automl/v1beta1"
|
765
|
+
#
|
766
|
+
# # Create a client object. The client can be reused for multiple calls.
|
767
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
768
|
+
#
|
769
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
770
|
+
# request = Google::Cloud::AutoML::V1beta1::ImportDataRequest.new
|
771
|
+
#
|
772
|
+
# # Call the import_data method.
|
773
|
+
# result = client.import_data request
|
774
|
+
#
|
775
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
776
|
+
# # object to check the status of an operation, cancel it, or wait
|
777
|
+
# # for results. Here is how to block until completion:
|
778
|
+
# result.wait_until_done! timeout: 60
|
779
|
+
# if result.response?
|
780
|
+
# p result.response
|
781
|
+
# else
|
782
|
+
# puts "Error!"
|
783
|
+
# end
|
784
|
+
#
|
663
785
|
def import_data request, options = nil
|
664
786
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
665
787
|
|
@@ -677,9 +799,11 @@ module Google
|
|
677
799
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
678
800
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
679
801
|
|
680
|
-
header_params = {
|
681
|
-
|
682
|
-
|
802
|
+
header_params = {}
|
803
|
+
if request.name
|
804
|
+
header_params["name"] = request.name
|
805
|
+
end
|
806
|
+
|
683
807
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
684
808
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
685
809
|
|
@@ -733,6 +857,28 @@ module Google
|
|
733
857
|
#
|
734
858
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
735
859
|
#
|
860
|
+
# @example Basic example
|
861
|
+
# require "google/cloud/automl/v1beta1"
|
862
|
+
#
|
863
|
+
# # Create a client object. The client can be reused for multiple calls.
|
864
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
865
|
+
#
|
866
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
867
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportDataRequest.new
|
868
|
+
#
|
869
|
+
# # Call the export_data method.
|
870
|
+
# result = client.export_data request
|
871
|
+
#
|
872
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
873
|
+
# # object to check the status of an operation, cancel it, or wait
|
874
|
+
# # for results. Here is how to block until completion:
|
875
|
+
# result.wait_until_done! timeout: 60
|
876
|
+
# if result.response?
|
877
|
+
# p result.response
|
878
|
+
# else
|
879
|
+
# puts "Error!"
|
880
|
+
# end
|
881
|
+
#
|
736
882
|
def export_data request, options = nil
|
737
883
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
738
884
|
|
@@ -750,9 +896,11 @@ module Google
|
|
750
896
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
751
897
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
752
898
|
|
753
|
-
header_params = {
|
754
|
-
|
755
|
-
|
899
|
+
header_params = {}
|
900
|
+
if request.name
|
901
|
+
header_params["name"] = request.name
|
902
|
+
end
|
903
|
+
|
756
904
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
757
905
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
758
906
|
|
@@ -802,6 +950,21 @@ module Google
|
|
802
950
|
#
|
803
951
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
804
952
|
#
|
953
|
+
# @example Basic example
|
954
|
+
# require "google/cloud/automl/v1beta1"
|
955
|
+
#
|
956
|
+
# # Create a client object. The client can be reused for multiple calls.
|
957
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
958
|
+
#
|
959
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
960
|
+
# request = Google::Cloud::AutoML::V1beta1::GetAnnotationSpecRequest.new
|
961
|
+
#
|
962
|
+
# # Call the get_annotation_spec method.
|
963
|
+
# result = client.get_annotation_spec request
|
964
|
+
#
|
965
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::AnnotationSpec.
|
966
|
+
# p result
|
967
|
+
#
|
805
968
|
def get_annotation_spec request, options = nil
|
806
969
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
807
970
|
|
@@ -819,9 +982,11 @@ module Google
|
|
819
982
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
820
983
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
821
984
|
|
822
|
-
header_params = {
|
823
|
-
|
824
|
-
|
985
|
+
header_params = {}
|
986
|
+
if request.name
|
987
|
+
header_params["name"] = request.name
|
988
|
+
end
|
989
|
+
|
825
990
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
826
991
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
827
992
|
|
@@ -872,6 +1037,21 @@ module Google
|
|
872
1037
|
#
|
873
1038
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
874
1039
|
#
|
1040
|
+
# @example Basic example
|
1041
|
+
# require "google/cloud/automl/v1beta1"
|
1042
|
+
#
|
1043
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1044
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1045
|
+
#
|
1046
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1047
|
+
# request = Google::Cloud::AutoML::V1beta1::GetTableSpecRequest.new
|
1048
|
+
#
|
1049
|
+
# # Call the get_table_spec method.
|
1050
|
+
# result = client.get_table_spec request
|
1051
|
+
#
|
1052
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::TableSpec.
|
1053
|
+
# p result
|
1054
|
+
#
|
875
1055
|
def get_table_spec request, options = nil
|
876
1056
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
877
1057
|
|
@@ -889,9 +1069,11 @@ module Google
|
|
889
1069
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
890
1070
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
891
1071
|
|
892
|
-
header_params = {
|
893
|
-
|
894
|
-
|
1072
|
+
header_params = {}
|
1073
|
+
if request.name
|
1074
|
+
header_params["name"] = request.name
|
1075
|
+
end
|
1076
|
+
|
895
1077
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
896
1078
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
897
1079
|
|
@@ -952,6 +1134,27 @@ module Google
|
|
952
1134
|
#
|
953
1135
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
954
1136
|
#
|
1137
|
+
# @example Basic example
|
1138
|
+
# require "google/cloud/automl/v1beta1"
|
1139
|
+
#
|
1140
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1141
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1142
|
+
#
|
1143
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1144
|
+
# request = Google::Cloud::AutoML::V1beta1::ListTableSpecsRequest.new
|
1145
|
+
#
|
1146
|
+
# # Call the list_table_specs method.
|
1147
|
+
# result = client.list_table_specs request
|
1148
|
+
#
|
1149
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1150
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1151
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1152
|
+
# # methods are also available for managing paging directly.
|
1153
|
+
# result.each do |response|
|
1154
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::TableSpec.
|
1155
|
+
# p response
|
1156
|
+
# end
|
1157
|
+
#
|
955
1158
|
def list_table_specs request, options = nil
|
956
1159
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
957
1160
|
|
@@ -969,9 +1172,11 @@ module Google
|
|
969
1172
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
970
1173
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
971
1174
|
|
972
|
-
header_params = {
|
973
|
-
|
974
|
-
|
1175
|
+
header_params = {}
|
1176
|
+
if request.parent
|
1177
|
+
header_params["parent"] = request.parent
|
1178
|
+
end
|
1179
|
+
|
975
1180
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
976
1181
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
977
1182
|
|
@@ -1023,6 +1228,21 @@ module Google
|
|
1023
1228
|
#
|
1024
1229
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1025
1230
|
#
|
1231
|
+
# @example Basic example
|
1232
|
+
# require "google/cloud/automl/v1beta1"
|
1233
|
+
#
|
1234
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1235
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1236
|
+
#
|
1237
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1238
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateTableSpecRequest.new
|
1239
|
+
#
|
1240
|
+
# # Call the update_table_spec method.
|
1241
|
+
# result = client.update_table_spec request
|
1242
|
+
#
|
1243
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::TableSpec.
|
1244
|
+
# p result
|
1245
|
+
#
|
1026
1246
|
def update_table_spec request, options = nil
|
1027
1247
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1028
1248
|
|
@@ -1040,9 +1260,11 @@ module Google
|
|
1040
1260
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1041
1261
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1042
1262
|
|
1043
|
-
header_params = {
|
1044
|
-
|
1045
|
-
|
1263
|
+
header_params = {}
|
1264
|
+
if request.table_spec&.name
|
1265
|
+
header_params["table_spec.name"] = request.table_spec.name
|
1266
|
+
end
|
1267
|
+
|
1046
1268
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1047
1269
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1048
1270
|
|
@@ -1093,6 +1315,21 @@ module Google
|
|
1093
1315
|
#
|
1094
1316
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1095
1317
|
#
|
1318
|
+
# @example Basic example
|
1319
|
+
# require "google/cloud/automl/v1beta1"
|
1320
|
+
#
|
1321
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1322
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1323
|
+
#
|
1324
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1325
|
+
# request = Google::Cloud::AutoML::V1beta1::GetColumnSpecRequest.new
|
1326
|
+
#
|
1327
|
+
# # Call the get_column_spec method.
|
1328
|
+
# result = client.get_column_spec request
|
1329
|
+
#
|
1330
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1331
|
+
# p result
|
1332
|
+
#
|
1096
1333
|
def get_column_spec request, options = nil
|
1097
1334
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1098
1335
|
|
@@ -1110,9 +1347,11 @@ module Google
|
|
1110
1347
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1111
1348
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1112
1349
|
|
1113
|
-
header_params = {
|
1114
|
-
|
1115
|
-
|
1350
|
+
header_params = {}
|
1351
|
+
if request.name
|
1352
|
+
header_params["name"] = request.name
|
1353
|
+
end
|
1354
|
+
|
1116
1355
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1117
1356
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1118
1357
|
|
@@ -1173,6 +1412,27 @@ module Google
|
|
1173
1412
|
#
|
1174
1413
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1175
1414
|
#
|
1415
|
+
# @example Basic example
|
1416
|
+
# require "google/cloud/automl/v1beta1"
|
1417
|
+
#
|
1418
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1419
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1420
|
+
#
|
1421
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1422
|
+
# request = Google::Cloud::AutoML::V1beta1::ListColumnSpecsRequest.new
|
1423
|
+
#
|
1424
|
+
# # Call the list_column_specs method.
|
1425
|
+
# result = client.list_column_specs request
|
1426
|
+
#
|
1427
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1428
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1429
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1430
|
+
# # methods are also available for managing paging directly.
|
1431
|
+
# result.each do |response|
|
1432
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1433
|
+
# p response
|
1434
|
+
# end
|
1435
|
+
#
|
1176
1436
|
def list_column_specs request, options = nil
|
1177
1437
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1178
1438
|
|
@@ -1190,9 +1450,11 @@ module Google
|
|
1190
1450
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1191
1451
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1192
1452
|
|
1193
|
-
header_params = {
|
1194
|
-
|
1195
|
-
|
1453
|
+
header_params = {}
|
1454
|
+
if request.parent
|
1455
|
+
header_params["parent"] = request.parent
|
1456
|
+
end
|
1457
|
+
|
1196
1458
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1197
1459
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1198
1460
|
|
@@ -1244,6 +1506,21 @@ module Google
|
|
1244
1506
|
#
|
1245
1507
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1246
1508
|
#
|
1509
|
+
# @example Basic example
|
1510
|
+
# require "google/cloud/automl/v1beta1"
|
1511
|
+
#
|
1512
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1513
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1514
|
+
#
|
1515
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1516
|
+
# request = Google::Cloud::AutoML::V1beta1::UpdateColumnSpecRequest.new
|
1517
|
+
#
|
1518
|
+
# # Call the update_column_spec method.
|
1519
|
+
# result = client.update_column_spec request
|
1520
|
+
#
|
1521
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1522
|
+
# p result
|
1523
|
+
#
|
1247
1524
|
def update_column_spec request, options = nil
|
1248
1525
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1249
1526
|
|
@@ -1261,9 +1538,11 @@ module Google
|
|
1261
1538
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1262
1539
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1263
1540
|
|
1264
|
-
header_params = {
|
1265
|
-
|
1266
|
-
|
1541
|
+
header_params = {}
|
1542
|
+
if request.column_spec&.name
|
1543
|
+
header_params["column_spec.name"] = request.column_spec.name
|
1544
|
+
end
|
1545
|
+
|
1267
1546
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1268
1547
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1269
1548
|
|
@@ -1318,6 +1597,28 @@ module Google
|
|
1318
1597
|
#
|
1319
1598
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1320
1599
|
#
|
1600
|
+
# @example Basic example
|
1601
|
+
# require "google/cloud/automl/v1beta1"
|
1602
|
+
#
|
1603
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1604
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1605
|
+
#
|
1606
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1607
|
+
# request = Google::Cloud::AutoML::V1beta1::CreateModelRequest.new
|
1608
|
+
#
|
1609
|
+
# # Call the create_model method.
|
1610
|
+
# result = client.create_model request
|
1611
|
+
#
|
1612
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1613
|
+
# # object to check the status of an operation, cancel it, or wait
|
1614
|
+
# # for results. Here is how to block until completion:
|
1615
|
+
# result.wait_until_done! timeout: 60
|
1616
|
+
# if result.response?
|
1617
|
+
# p result.response
|
1618
|
+
# else
|
1619
|
+
# puts "Error!"
|
1620
|
+
# end
|
1621
|
+
#
|
1321
1622
|
def create_model request, options = nil
|
1322
1623
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1323
1624
|
|
@@ -1335,9 +1636,11 @@ module Google
|
|
1335
1636
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1336
1637
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1337
1638
|
|
1338
|
-
header_params = {
|
1339
|
-
|
1340
|
-
|
1639
|
+
header_params = {}
|
1640
|
+
if request.parent
|
1641
|
+
header_params["parent"] = request.parent
|
1642
|
+
end
|
1643
|
+
|
1341
1644
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1342
1645
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1343
1646
|
|
@@ -1387,6 +1690,21 @@ module Google
|
|
1387
1690
|
#
|
1388
1691
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1389
1692
|
#
|
1693
|
+
# @example Basic example
|
1694
|
+
# require "google/cloud/automl/v1beta1"
|
1695
|
+
#
|
1696
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1697
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1698
|
+
#
|
1699
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1700
|
+
# request = Google::Cloud::AutoML::V1beta1::GetModelRequest.new
|
1701
|
+
#
|
1702
|
+
# # Call the get_model method.
|
1703
|
+
# result = client.get_model request
|
1704
|
+
#
|
1705
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::Model.
|
1706
|
+
# p result
|
1707
|
+
#
|
1390
1708
|
def get_model request, options = nil
|
1391
1709
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1392
1710
|
|
@@ -1404,9 +1722,11 @@ module Google
|
|
1404
1722
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1405
1723
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1406
1724
|
|
1407
|
-
header_params = {
|
1408
|
-
|
1409
|
-
|
1725
|
+
header_params = {}
|
1726
|
+
if request.name
|
1727
|
+
header_params["name"] = request.name
|
1728
|
+
end
|
1729
|
+
|
1410
1730
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1411
1731
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1412
1732
|
|
@@ -1450,11 +1770,11 @@ module Google
|
|
1450
1770
|
# An expression for filtering the results of the request.
|
1451
1771
|
#
|
1452
1772
|
# * `model_metadata` - for existence of the case (e.g.
|
1453
|
-
# video_classification_model_metadata
|
1773
|
+
# `video_classification_model_metadata:*`).
|
1454
1774
|
# * `dataset_id` - for = or !=. Some examples of using the filter are:
|
1455
1775
|
#
|
1456
1776
|
# * `image_classification_model_metadata:*` --> The model has
|
1457
|
-
#
|
1777
|
+
# `image_classification_model_metadata`.
|
1458
1778
|
# * `dataset_id=5` --> The model was created from a dataset with ID 5.
|
1459
1779
|
# @param page_size [::Integer]
|
1460
1780
|
# Requested page size.
|
@@ -1472,6 +1792,27 @@ module Google
|
|
1472
1792
|
#
|
1473
1793
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1474
1794
|
#
|
1795
|
+
# @example Basic example
|
1796
|
+
# require "google/cloud/automl/v1beta1"
|
1797
|
+
#
|
1798
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1799
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1800
|
+
#
|
1801
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1802
|
+
# request = Google::Cloud::AutoML::V1beta1::ListModelsRequest.new
|
1803
|
+
#
|
1804
|
+
# # Call the list_models method.
|
1805
|
+
# result = client.list_models request
|
1806
|
+
#
|
1807
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1808
|
+
# # iterate over all elements by calling #each, and the enumerable
|
1809
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
1810
|
+
# # methods are also available for managing paging directly.
|
1811
|
+
# result.each do |response|
|
1812
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Model.
|
1813
|
+
# p response
|
1814
|
+
# end
|
1815
|
+
#
|
1475
1816
|
def list_models request, options = nil
|
1476
1817
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1477
1818
|
|
@@ -1489,9 +1830,11 @@ module Google
|
|
1489
1830
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1490
1831
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1491
1832
|
|
1492
|
-
header_params = {
|
1493
|
-
|
1494
|
-
|
1833
|
+
header_params = {}
|
1834
|
+
if request.parent
|
1835
|
+
header_params["parent"] = request.parent
|
1836
|
+
end
|
1837
|
+
|
1495
1838
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1496
1839
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1497
1840
|
|
@@ -1545,6 +1888,28 @@ module Google
|
|
1545
1888
|
#
|
1546
1889
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1547
1890
|
#
|
1891
|
+
# @example Basic example
|
1892
|
+
# require "google/cloud/automl/v1beta1"
|
1893
|
+
#
|
1894
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1895
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
1896
|
+
#
|
1897
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1898
|
+
# request = Google::Cloud::AutoML::V1beta1::DeleteModelRequest.new
|
1899
|
+
#
|
1900
|
+
# # Call the delete_model method.
|
1901
|
+
# result = client.delete_model request
|
1902
|
+
#
|
1903
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1904
|
+
# # object to check the status of an operation, cancel it, or wait
|
1905
|
+
# # for results. Here is how to block until completion:
|
1906
|
+
# result.wait_until_done! timeout: 60
|
1907
|
+
# if result.response?
|
1908
|
+
# p result.response
|
1909
|
+
# else
|
1910
|
+
# puts "Error!"
|
1911
|
+
# end
|
1912
|
+
#
|
1548
1913
|
def delete_model request, options = nil
|
1549
1914
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1550
1915
|
|
@@ -1562,9 +1927,11 @@ module Google
|
|
1562
1927
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1563
1928
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1564
1929
|
|
1565
|
-
header_params = {
|
1566
|
-
|
1567
|
-
|
1930
|
+
header_params = {}
|
1931
|
+
if request.name
|
1932
|
+
header_params["name"] = request.name
|
1933
|
+
end
|
1934
|
+
|
1568
1935
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1569
1936
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1570
1937
|
|
@@ -1629,6 +1996,28 @@ module Google
|
|
1629
1996
|
#
|
1630
1997
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1631
1998
|
#
|
1999
|
+
# @example Basic example
|
2000
|
+
# require "google/cloud/automl/v1beta1"
|
2001
|
+
#
|
2002
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2003
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2004
|
+
#
|
2005
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2006
|
+
# request = Google::Cloud::AutoML::V1beta1::DeployModelRequest.new
|
2007
|
+
#
|
2008
|
+
# # Call the deploy_model method.
|
2009
|
+
# result = client.deploy_model request
|
2010
|
+
#
|
2011
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2012
|
+
# # object to check the status of an operation, cancel it, or wait
|
2013
|
+
# # for results. Here is how to block until completion:
|
2014
|
+
# result.wait_until_done! timeout: 60
|
2015
|
+
# if result.response?
|
2016
|
+
# p result.response
|
2017
|
+
# else
|
2018
|
+
# puts "Error!"
|
2019
|
+
# end
|
2020
|
+
#
|
1632
2021
|
def deploy_model request, options = nil
|
1633
2022
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1634
2023
|
|
@@ -1646,9 +2035,11 @@ module Google
|
|
1646
2035
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1647
2036
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1648
2037
|
|
1649
|
-
header_params = {
|
1650
|
-
|
1651
|
-
|
2038
|
+
header_params = {}
|
2039
|
+
if request.name
|
2040
|
+
header_params["name"] = request.name
|
2041
|
+
end
|
2042
|
+
|
1652
2043
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1653
2044
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1654
2045
|
|
@@ -1704,6 +2095,28 @@ module Google
|
|
1704
2095
|
#
|
1705
2096
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1706
2097
|
#
|
2098
|
+
# @example Basic example
|
2099
|
+
# require "google/cloud/automl/v1beta1"
|
2100
|
+
#
|
2101
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2102
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2103
|
+
#
|
2104
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2105
|
+
# request = Google::Cloud::AutoML::V1beta1::UndeployModelRequest.new
|
2106
|
+
#
|
2107
|
+
# # Call the undeploy_model method.
|
2108
|
+
# result = client.undeploy_model request
|
2109
|
+
#
|
2110
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2111
|
+
# # object to check the status of an operation, cancel it, or wait
|
2112
|
+
# # for results. Here is how to block until completion:
|
2113
|
+
# result.wait_until_done! timeout: 60
|
2114
|
+
# if result.response?
|
2115
|
+
# p result.response
|
2116
|
+
# else
|
2117
|
+
# puts "Error!"
|
2118
|
+
# end
|
2119
|
+
#
|
1707
2120
|
def undeploy_model request, options = nil
|
1708
2121
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1709
2122
|
|
@@ -1721,9 +2134,11 @@ module Google
|
|
1721
2134
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1722
2135
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1723
2136
|
|
1724
|
-
header_params = {
|
1725
|
-
|
1726
|
-
|
2137
|
+
header_params = {}
|
2138
|
+
if request.name
|
2139
|
+
header_params["name"] = request.name
|
2140
|
+
end
|
2141
|
+
|
1727
2142
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1728
2143
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1729
2144
|
|
@@ -1782,6 +2197,28 @@ module Google
|
|
1782
2197
|
#
|
1783
2198
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1784
2199
|
#
|
2200
|
+
# @example Basic example
|
2201
|
+
# require "google/cloud/automl/v1beta1"
|
2202
|
+
#
|
2203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2204
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2205
|
+
#
|
2206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2207
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportModelRequest.new
|
2208
|
+
#
|
2209
|
+
# # Call the export_model method.
|
2210
|
+
# result = client.export_model request
|
2211
|
+
#
|
2212
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2213
|
+
# # object to check the status of an operation, cancel it, or wait
|
2214
|
+
# # for results. Here is how to block until completion:
|
2215
|
+
# result.wait_until_done! timeout: 60
|
2216
|
+
# if result.response?
|
2217
|
+
# p result.response
|
2218
|
+
# else
|
2219
|
+
# puts "Error!"
|
2220
|
+
# end
|
2221
|
+
#
|
1785
2222
|
def export_model request, options = nil
|
1786
2223
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1787
2224
|
|
@@ -1799,9 +2236,11 @@ module Google
|
|
1799
2236
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1800
2237
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1801
2238
|
|
1802
|
-
header_params = {
|
1803
|
-
|
1804
|
-
|
2239
|
+
header_params = {}
|
2240
|
+
if request.name
|
2241
|
+
header_params["name"] = request.name
|
2242
|
+
end
|
2243
|
+
|
1805
2244
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1806
2245
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1807
2246
|
|
@@ -1867,6 +2306,28 @@ module Google
|
|
1867
2306
|
#
|
1868
2307
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1869
2308
|
#
|
2309
|
+
# @example Basic example
|
2310
|
+
# require "google/cloud/automl/v1beta1"
|
2311
|
+
#
|
2312
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2313
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2314
|
+
#
|
2315
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2316
|
+
# request = Google::Cloud::AutoML::V1beta1::ExportEvaluatedExamplesRequest.new
|
2317
|
+
#
|
2318
|
+
# # Call the export_evaluated_examples method.
|
2319
|
+
# result = client.export_evaluated_examples request
|
2320
|
+
#
|
2321
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2322
|
+
# # object to check the status of an operation, cancel it, or wait
|
2323
|
+
# # for results. Here is how to block until completion:
|
2324
|
+
# result.wait_until_done! timeout: 60
|
2325
|
+
# if result.response?
|
2326
|
+
# p result.response
|
2327
|
+
# else
|
2328
|
+
# puts "Error!"
|
2329
|
+
# end
|
2330
|
+
#
|
1870
2331
|
def export_evaluated_examples request, options = nil
|
1871
2332
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1872
2333
|
|
@@ -1884,9 +2345,11 @@ module Google
|
|
1884
2345
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1885
2346
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1886
2347
|
|
1887
|
-
header_params = {
|
1888
|
-
|
1889
|
-
|
2348
|
+
header_params = {}
|
2349
|
+
if request.name
|
2350
|
+
header_params["name"] = request.name
|
2351
|
+
end
|
2352
|
+
|
1890
2353
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1891
2354
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1892
2355
|
|
@@ -1936,6 +2399,21 @@ module Google
|
|
1936
2399
|
#
|
1937
2400
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1938
2401
|
#
|
2402
|
+
# @example Basic example
|
2403
|
+
# require "google/cloud/automl/v1beta1"
|
2404
|
+
#
|
2405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2406
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2407
|
+
#
|
2408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2409
|
+
# request = Google::Cloud::AutoML::V1beta1::GetModelEvaluationRequest.new
|
2410
|
+
#
|
2411
|
+
# # Call the get_model_evaluation method.
|
2412
|
+
# result = client.get_model_evaluation request
|
2413
|
+
#
|
2414
|
+
# # The returned object is of type Google::Cloud::AutoML::V1beta1::ModelEvaluation.
|
2415
|
+
# p result
|
2416
|
+
#
|
1939
2417
|
def get_model_evaluation request, options = nil
|
1940
2418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1941
2419
|
|
@@ -1953,9 +2431,11 @@ module Google
|
|
1953
2431
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
1954
2432
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1955
2433
|
|
1956
|
-
header_params = {
|
1957
|
-
|
1958
|
-
|
2434
|
+
header_params = {}
|
2435
|
+
if request.name
|
2436
|
+
header_params["name"] = request.name
|
2437
|
+
end
|
2438
|
+
|
1959
2439
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1960
2440
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
1961
2441
|
|
@@ -2025,6 +2505,27 @@ module Google
|
|
2025
2505
|
#
|
2026
2506
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2027
2507
|
#
|
2508
|
+
# @example Basic example
|
2509
|
+
# require "google/cloud/automl/v1beta1"
|
2510
|
+
#
|
2511
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2512
|
+
# client = Google::Cloud::AutoML::V1beta1::AutoML::Client.new
|
2513
|
+
#
|
2514
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2515
|
+
# request = Google::Cloud::AutoML::V1beta1::ListModelEvaluationsRequest.new
|
2516
|
+
#
|
2517
|
+
# # Call the list_model_evaluations method.
|
2518
|
+
# result = client.list_model_evaluations request
|
2519
|
+
#
|
2520
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2521
|
+
# # iterate over all elements by calling #each, and the enumerable
|
2522
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
2523
|
+
# # methods are also available for managing paging directly.
|
2524
|
+
# result.each do |response|
|
2525
|
+
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ModelEvaluation.
|
2526
|
+
# p response
|
2527
|
+
# end
|
2528
|
+
#
|
2028
2529
|
def list_model_evaluations request, options = nil
|
2029
2530
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2030
2531
|
|
@@ -2042,9 +2543,11 @@ module Google
|
|
2042
2543
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
2043
2544
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2044
2545
|
|
2045
|
-
header_params = {
|
2046
|
-
|
2047
|
-
|
2546
|
+
header_params = {}
|
2547
|
+
if request.parent
|
2548
|
+
header_params["parent"] = request.parent
|
2549
|
+
end
|
2550
|
+
|
2048
2551
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2049
2552
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
2050
2553
|
|