google-cloud-automl-v1beta1 0.6.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +2 -2
- data/lib/google/cloud/automl/v1beta1/annotation_payload_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/annotation_spec_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/automl/client.rb +56 -66
- data/lib/google/cloud/automl/v1beta1/automl/operations.rb +20 -14
- data/lib/google/cloud/automl/v1beta1/automl/rest/client.rb +2222 -0
- data/lib/google/cloud/automl/v1beta1/automl/rest/operations.rb +935 -0
- data/lib/google/cloud/automl/v1beta1/automl/rest/service_stub.rb +1475 -0
- data/lib/google/cloud/automl/v1beta1/automl/rest.rb +66 -0
- data/lib/google/cloud/automl/v1beta1/automl.rb +7 -1
- data/lib/google/cloud/automl/v1beta1/classification_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/column_spec_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/data_items_pb.rb +0 -3
- data/lib/google/cloud/automl/v1beta1/data_stats_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/data_types_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/dataset_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/detection_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/geometry_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/image_pb.rb +0 -3
- data/lib/google/cloud/automl/v1beta1/io_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/model_evaluation_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/model_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/operations_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/prediction_service/client.rb +4 -4
- data/lib/google/cloud/automl/v1beta1/prediction_service/operations.rb +20 -14
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/client.rb +563 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/operations.rb +935 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest/service_stub.rb +168 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service/rest.rb +56 -0
- data/lib/google/cloud/automl/v1beta1/prediction_service.rb +7 -1
- data/lib/google/cloud/automl/v1beta1/ranges_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/regression_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/rest.rb +38 -0
- data/lib/google/cloud/automl/v1beta1/table_spec_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/tables_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/temporal_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/text_extraction_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/text_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/text_segment_pb.rb +0 -2
- data/lib/google/cloud/automl/v1beta1/text_sentiment_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/translation_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1/version.rb +1 -1
- data/lib/google/cloud/automl/v1beta1/video_pb.rb +0 -1
- data/lib/google/cloud/automl/v1beta1.rb +7 -2
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/protobuf/empty.rb +0 -2
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +20 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37a08f1795dddc41e10531d84f70265ae447f1071e8e8894cfd9ff5f23f6436d
|
4
|
+
data.tar.gz: 21d6c75fee456e1f9e49ec8d309985f2480f3d27cd9990d8a08ac9ecf61d37b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b91d67faceedc66d2a73298a11680b09c65ede5b67be62dbb1d320fbd040de441768741fbda4b2e339fe58f0b83df83a2c5db70417fe8456789d3c5d5b9e2dec
|
7
|
+
data.tar.gz: e555a8ce6eee6db8b4afa6748de2cc5a820048f64622dec5ab3854fa1ecb2b7fb7f1b58bd748c4f38e80679e8abc93a96ec3c5eb44e9320318df73379a6fa514
|
data/AUTHENTICATION.md
CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
|
|
114
114
|
To configure your system for this, simply:
|
115
115
|
|
116
116
|
1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
|
117
|
-
2. Authenticate using OAuth 2.0 `$ gcloud auth login`
|
117
|
+
2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
|
118
118
|
3. Write code as if already authenticated.
|
119
119
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Ruby Client for the Cloud AutoML V1beta1 API
|
2
2
|
|
3
|
-
|
3
|
+
Train high-quality custom machine learning models with minimum effort and machine learning expertise.
|
4
4
|
|
5
5
|
AutoML makes the power of machine learning available to you even if you have limited knowledge of machine learning. You can use AutoML to build on Google's machine learning capabilities to create your own custom machine learning models that are tailored to your business needs, and then integrate those models into your applications and web sites.
|
6
6
|
|
@@ -46,7 +46,7 @@ for general usage information.
|
|
46
46
|
## Enabling Logging
|
47
47
|
|
48
48
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
49
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/
|
49
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
|
50
50
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
51
51
|
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
52
52
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
@@ -9,8 +9,6 @@ require 'google/cloud/automl/v1beta1/tables_pb'
|
|
9
9
|
require 'google/cloud/automl/v1beta1/text_extraction_pb'
|
10
10
|
require 'google/cloud/automl/v1beta1/text_sentiment_pb'
|
11
11
|
require 'google/cloud/automl/v1beta1/translation_pb'
|
12
|
-
require 'google/protobuf/any_pb'
|
13
|
-
require 'google/api/annotations_pb'
|
14
12
|
|
15
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
14
|
add_file("google/cloud/automl/v1beta1/annotation_payload.proto", :syntax => :proto3) do
|
@@ -484,13 +484,11 @@ module Google
|
|
484
484
|
# # Call the list_datasets method.
|
485
485
|
# result = client.list_datasets request
|
486
486
|
#
|
487
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
488
|
-
# #
|
489
|
-
#
|
490
|
-
# # methods are also available for managing paging directly.
|
491
|
-
# result.each do |response|
|
487
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
488
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
489
|
+
# result.each do |item|
|
492
490
|
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Dataset.
|
493
|
-
# p
|
491
|
+
# p item
|
494
492
|
# end
|
495
493
|
#
|
496
494
|
def list_datasets request, options = nil
|
@@ -667,14 +665,14 @@ module Google
|
|
667
665
|
# # Call the delete_dataset method.
|
668
666
|
# result = client.delete_dataset request
|
669
667
|
#
|
670
|
-
# # The returned object is of type Gapic::Operation. You can use
|
671
|
-
# #
|
672
|
-
# #
|
668
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
669
|
+
# # check the status of an operation, cancel it, or wait for results.
|
670
|
+
# # Here is how to wait for a response.
|
673
671
|
# result.wait_until_done! timeout: 60
|
674
672
|
# if result.response?
|
675
673
|
# p result.response
|
676
674
|
# else
|
677
|
-
# puts "
|
675
|
+
# puts "No response received."
|
678
676
|
# end
|
679
677
|
#
|
680
678
|
def delete_dataset request, options = nil
|
@@ -772,14 +770,14 @@ module Google
|
|
772
770
|
# # Call the import_data method.
|
773
771
|
# result = client.import_data request
|
774
772
|
#
|
775
|
-
# # The returned object is of type Gapic::Operation. You can use
|
776
|
-
# #
|
777
|
-
# #
|
773
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
774
|
+
# # check the status of an operation, cancel it, or wait for results.
|
775
|
+
# # Here is how to wait for a response.
|
778
776
|
# result.wait_until_done! timeout: 60
|
779
777
|
# if result.response?
|
780
778
|
# p result.response
|
781
779
|
# else
|
782
|
-
# puts "
|
780
|
+
# puts "No response received."
|
783
781
|
# end
|
784
782
|
#
|
785
783
|
def import_data request, options = nil
|
@@ -869,14 +867,14 @@ module Google
|
|
869
867
|
# # Call the export_data method.
|
870
868
|
# result = client.export_data request
|
871
869
|
#
|
872
|
-
# # The returned object is of type Gapic::Operation. You can use
|
873
|
-
# #
|
874
|
-
# #
|
870
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
871
|
+
# # check the status of an operation, cancel it, or wait for results.
|
872
|
+
# # Here is how to wait for a response.
|
875
873
|
# result.wait_until_done! timeout: 60
|
876
874
|
# if result.response?
|
877
875
|
# p result.response
|
878
876
|
# else
|
879
|
-
# puts "
|
877
|
+
# puts "No response received."
|
880
878
|
# end
|
881
879
|
#
|
882
880
|
def export_data request, options = nil
|
@@ -1146,13 +1144,11 @@ module Google
|
|
1146
1144
|
# # Call the list_table_specs method.
|
1147
1145
|
# result = client.list_table_specs request
|
1148
1146
|
#
|
1149
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1150
|
-
# #
|
1151
|
-
#
|
1152
|
-
# # methods are also available for managing paging directly.
|
1153
|
-
# result.each do |response|
|
1147
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1148
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1149
|
+
# result.each do |item|
|
1154
1150
|
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::TableSpec.
|
1155
|
-
# p
|
1151
|
+
# p item
|
1156
1152
|
# end
|
1157
1153
|
#
|
1158
1154
|
def list_table_specs request, options = nil
|
@@ -1424,13 +1420,11 @@ module Google
|
|
1424
1420
|
# # Call the list_column_specs method.
|
1425
1421
|
# result = client.list_column_specs request
|
1426
1422
|
#
|
1427
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1428
|
-
# #
|
1429
|
-
#
|
1430
|
-
# # methods are also available for managing paging directly.
|
1431
|
-
# result.each do |response|
|
1423
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1424
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1425
|
+
# result.each do |item|
|
1432
1426
|
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ColumnSpec.
|
1433
|
-
# p
|
1427
|
+
# p item
|
1434
1428
|
# end
|
1435
1429
|
#
|
1436
1430
|
def list_column_specs request, options = nil
|
@@ -1609,14 +1603,14 @@ module Google
|
|
1609
1603
|
# # Call the create_model method.
|
1610
1604
|
# result = client.create_model request
|
1611
1605
|
#
|
1612
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1613
|
-
# #
|
1614
|
-
# #
|
1606
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1607
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1608
|
+
# # Here is how to wait for a response.
|
1615
1609
|
# result.wait_until_done! timeout: 60
|
1616
1610
|
# if result.response?
|
1617
1611
|
# p result.response
|
1618
1612
|
# else
|
1619
|
-
# puts "
|
1613
|
+
# puts "No response received."
|
1620
1614
|
# end
|
1621
1615
|
#
|
1622
1616
|
def create_model request, options = nil
|
@@ -1804,13 +1798,11 @@ module Google
|
|
1804
1798
|
# # Call the list_models method.
|
1805
1799
|
# result = client.list_models request
|
1806
1800
|
#
|
1807
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
1808
|
-
# #
|
1809
|
-
#
|
1810
|
-
# # methods are also available for managing paging directly.
|
1811
|
-
# result.each do |response|
|
1801
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
1802
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
1803
|
+
# result.each do |item|
|
1812
1804
|
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::Model.
|
1813
|
-
# p
|
1805
|
+
# p item
|
1814
1806
|
# end
|
1815
1807
|
#
|
1816
1808
|
def list_models request, options = nil
|
@@ -1900,14 +1892,14 @@ module Google
|
|
1900
1892
|
# # Call the delete_model method.
|
1901
1893
|
# result = client.delete_model request
|
1902
1894
|
#
|
1903
|
-
# # The returned object is of type Gapic::Operation. You can use
|
1904
|
-
# #
|
1905
|
-
# #
|
1895
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1896
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1897
|
+
# # Here is how to wait for a response.
|
1906
1898
|
# result.wait_until_done! timeout: 60
|
1907
1899
|
# if result.response?
|
1908
1900
|
# p result.response
|
1909
1901
|
# else
|
1910
|
-
# puts "
|
1902
|
+
# puts "No response received."
|
1911
1903
|
# end
|
1912
1904
|
#
|
1913
1905
|
def delete_model request, options = nil
|
@@ -2008,14 +2000,14 @@ module Google
|
|
2008
2000
|
# # Call the deploy_model method.
|
2009
2001
|
# result = client.deploy_model request
|
2010
2002
|
#
|
2011
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2012
|
-
# #
|
2013
|
-
# #
|
2003
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2004
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2005
|
+
# # Here is how to wait for a response.
|
2014
2006
|
# result.wait_until_done! timeout: 60
|
2015
2007
|
# if result.response?
|
2016
2008
|
# p result.response
|
2017
2009
|
# else
|
2018
|
-
# puts "
|
2010
|
+
# puts "No response received."
|
2019
2011
|
# end
|
2020
2012
|
#
|
2021
2013
|
def deploy_model request, options = nil
|
@@ -2107,14 +2099,14 @@ module Google
|
|
2107
2099
|
# # Call the undeploy_model method.
|
2108
2100
|
# result = client.undeploy_model request
|
2109
2101
|
#
|
2110
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2111
|
-
# #
|
2112
|
-
# #
|
2102
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2103
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2104
|
+
# # Here is how to wait for a response.
|
2113
2105
|
# result.wait_until_done! timeout: 60
|
2114
2106
|
# if result.response?
|
2115
2107
|
# p result.response
|
2116
2108
|
# else
|
2117
|
-
# puts "
|
2109
|
+
# puts "No response received."
|
2118
2110
|
# end
|
2119
2111
|
#
|
2120
2112
|
def undeploy_model request, options = nil
|
@@ -2209,14 +2201,14 @@ module Google
|
|
2209
2201
|
# # Call the export_model method.
|
2210
2202
|
# result = client.export_model request
|
2211
2203
|
#
|
2212
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2213
|
-
# #
|
2214
|
-
# #
|
2204
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2205
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2206
|
+
# # Here is how to wait for a response.
|
2215
2207
|
# result.wait_until_done! timeout: 60
|
2216
2208
|
# if result.response?
|
2217
2209
|
# p result.response
|
2218
2210
|
# else
|
2219
|
-
# puts "
|
2211
|
+
# puts "No response received."
|
2220
2212
|
# end
|
2221
2213
|
#
|
2222
2214
|
def export_model request, options = nil
|
@@ -2318,14 +2310,14 @@ module Google
|
|
2318
2310
|
# # Call the export_evaluated_examples method.
|
2319
2311
|
# result = client.export_evaluated_examples request
|
2320
2312
|
#
|
2321
|
-
# # The returned object is of type Gapic::Operation. You can use
|
2322
|
-
# #
|
2323
|
-
# #
|
2313
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2314
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2315
|
+
# # Here is how to wait for a response.
|
2324
2316
|
# result.wait_until_done! timeout: 60
|
2325
2317
|
# if result.response?
|
2326
2318
|
# p result.response
|
2327
2319
|
# else
|
2328
|
-
# puts "
|
2320
|
+
# puts "No response received."
|
2329
2321
|
# end
|
2330
2322
|
#
|
2331
2323
|
def export_evaluated_examples request, options = nil
|
@@ -2517,13 +2509,11 @@ module Google
|
|
2517
2509
|
# # Call the list_model_evaluations method.
|
2518
2510
|
# result = client.list_model_evaluations request
|
2519
2511
|
#
|
2520
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
2521
|
-
# #
|
2522
|
-
#
|
2523
|
-
# # methods are also available for managing paging directly.
|
2524
|
-
# result.each do |response|
|
2512
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
2513
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
2514
|
+
# result.each do |item|
|
2525
2515
|
# # Each element is of type ::Google::Cloud::AutoML::V1beta1::ModelEvaluation.
|
2526
|
-
# p
|
2516
|
+
# p item
|
2527
2517
|
# end
|
2528
2518
|
#
|
2529
2519
|
def list_model_evaluations request, options = nil
|
@@ -158,13 +158,11 @@ module Google
|
|
158
158
|
# # Call the list_operations method.
|
159
159
|
# result = client.list_operations request
|
160
160
|
#
|
161
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
162
|
-
# #
|
163
|
-
#
|
164
|
-
# # methods are also available for managing paging directly.
|
165
|
-
# result.each do |response|
|
161
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
162
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
163
|
+
# result.each do |item|
|
166
164
|
# # Each element is of type ::Google::Longrunning::Operation.
|
167
|
-
# p
|
165
|
+
# p item
|
168
166
|
# end
|
169
167
|
#
|
170
168
|
def list_operations request, options = nil
|
@@ -253,14 +251,14 @@ module Google
|
|
253
251
|
# # Call the get_operation method.
|
254
252
|
# result = client.get_operation request
|
255
253
|
#
|
256
|
-
# # The returned object is of type Gapic::Operation. You can use
|
257
|
-
# #
|
258
|
-
# #
|
254
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
255
|
+
# # check the status of an operation, cancel it, or wait for results.
|
256
|
+
# # Here is how to wait for a response.
|
259
257
|
# result.wait_until_done! timeout: 60
|
260
258
|
# if result.response?
|
261
259
|
# p result.response
|
262
260
|
# else
|
263
|
-
# puts "
|
261
|
+
# puts "No response received."
|
264
262
|
# end
|
265
263
|
#
|
266
264
|
def get_operation request, options = nil
|
@@ -540,14 +538,14 @@ module Google
|
|
540
538
|
# # Call the wait_operation method.
|
541
539
|
# result = client.wait_operation request
|
542
540
|
#
|
543
|
-
# # The returned object is of type Gapic::Operation. You can use
|
544
|
-
# #
|
545
|
-
# #
|
541
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
542
|
+
# # check the status of an operation, cancel it, or wait for results.
|
543
|
+
# # Here is how to wait for a response.
|
546
544
|
# result.wait_until_done! timeout: 60
|
547
545
|
# if result.response?
|
548
546
|
# p result.response
|
549
547
|
# else
|
550
|
-
# puts "
|
548
|
+
# puts "No response received."
|
551
549
|
# end
|
552
550
|
#
|
553
551
|
def wait_operation request, options = nil
|
@@ -567,6 +565,14 @@ module Google
|
|
567
565
|
gapic_version: ::Google::Cloud::AutoML::V1beta1::VERSION
|
568
566
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
569
567
|
|
568
|
+
header_params = {}
|
569
|
+
if request.name
|
570
|
+
header_params["name"] = request.name
|
571
|
+
end
|
572
|
+
|
573
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
574
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
575
|
+
|
570
576
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
571
577
|
metadata: metadata,
|
572
578
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|