google-cloud-automl-v1 0.4.1 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -8
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1/annotation_payload_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/annotation_spec_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/automl/client.rb +539 -149
- data/lib/google/cloud/automl/v1/automl/operations.rb +149 -37
- data/lib/google/cloud/automl/v1/classification_pb.rb +1 -1
- data/lib/google/cloud/automl/v1/data_items_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/dataset_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/detection_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/geometry_pb.rb +1 -1
- data/lib/google/cloud/automl/v1/image_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/io_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/model_evaluation_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/model_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/operations_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +83 -45
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +149 -37
- data/lib/google/cloud/automl/v1/prediction_service_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/service_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/text_extraction_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/text_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/text_segment_pb.rb +1 -1
- data/lib/google/cloud/automl/v1/text_sentiment_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/translation_pb.rb +2 -2
- data/lib/google/cloud/automl/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +7 -1
- data/proto_docs/google/cloud/automl/v1/service.rb +5 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6837ad5ff79bdfc71b64984e99875f6f14857c053b3c809e8c856959502db2eb
|
4
|
+
data.tar.gz: 37834999f3d531db65d92dd6e84955b9f87ff3329c2fbeaa99e576096e7bd55d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe924553383e981b1ffc2f3e08ae627b1092454c9117ebffb3a39710076b9498ed49386e53124b3b9e61cca1d78608f828faa97f8d090af48d83071793d8ab06
|
7
|
+
data.tar.gz: 5f7a57d199a64b1f069b757ca14b40d2360bb80535d68b9a1d3a9f41424bccd21393d208444e84f48f7387b0ac44297a0d1a21f66e10267c103f2af5ab9fbca1
|
data/AUTHENTICATION.md
CHANGED
@@ -66,11 +66,11 @@ The environment variables that google-cloud-automl-v1
|
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
67
|
{::Google::Cloud::AutoML::V1::PredictionService::Credentials}):
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
69
|
+
* `AUTOML_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
|
+
* `AUTOML_KEYFILE` - Path to JSON file, or JSON contents
|
71
|
+
* `GOOGLE_CLOUD_CREDENTIALS` - Path to JSON file, or JSON contents
|
72
|
+
* `GOOGLE_CLOUD_KEYFILE` - Path to JSON file, or JSON contents
|
73
|
+
* `GOOGLE_APPLICATION_CREDENTIALS` - Path to JSON file
|
74
74
|
|
75
75
|
```ruby
|
76
76
|
require "google/cloud/automl/v1"
|
@@ -82,8 +82,8 @@ client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
|
|
82
82
|
|
83
83
|
### Configuration
|
84
84
|
|
85
|
-
The **Credentials JSON** can be configured instead of
|
86
|
-
environment
|
85
|
+
The path to the **Credentials JSON** file can be configured instead of storing
|
86
|
+
it in an environment variable. Either on an individual client initialization:
|
87
87
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/automl/v1"
|
@@ -93,7 +93,7 @@ client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
|
|
93
93
|
end
|
94
94
|
```
|
95
95
|
|
96
|
-
Or
|
96
|
+
Or globally for all clients:
|
97
97
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/automl/v1"
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ In order to use this library, you first need to go through the following steps:
|
|
33
33
|
require "google/cloud/automl/v1"
|
34
34
|
|
35
35
|
client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
|
36
|
-
request =
|
36
|
+
request = ::Google::Cloud::AutoML::V1::PredictRequest.new # (request fields as keyword arguments...)
|
37
37
|
response = client.predict request
|
38
38
|
```
|
39
39
|
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/automl/v1/annotation_payload.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/cloud/automl/v1/classification_pb'
|
7
5
|
require 'google/cloud/automl/v1/detection_pb'
|
8
6
|
require 'google/cloud/automl/v1/text_extraction_pb'
|
@@ -10,6 +8,8 @@ require 'google/cloud/automl/v1/text_sentiment_pb'
|
|
10
8
|
require 'google/cloud/automl/v1/translation_pb'
|
11
9
|
require 'google/protobuf/any_pb'
|
12
10
|
require 'google/api/annotations_pb'
|
11
|
+
require 'google/protobuf'
|
12
|
+
|
13
13
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
14
|
add_file("google/cloud/automl/v1/annotation_payload.proto", :syntax => :proto3) do
|
15
15
|
add_message "google.cloud.automl.v1.AnnotationPayload" do
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/automl/v1/annotation_spec.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/resource_pb'
|
7
5
|
require 'google/api/annotations_pb'
|
6
|
+
require 'google/protobuf'
|
7
|
+
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/automl/v1/annotation_spec.proto", :syntax => :proto3) do
|
10
10
|
add_message "google.cloud.automl.v1.AnnotationSpec" do
|