google-cloud-automl-v1 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +1 -1
- data/lib/google/cloud/automl/v1/automl/client.rb +373 -373
- data/lib/google/cloud/automl/v1/automl/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/automl/operations.rb +100 -100
- data/lib/google/cloud/automl/v1/automl/paths.rb +16 -16
- data/lib/google/cloud/automl/v1/automl.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/client.rb +116 -120
- data/lib/google/cloud/automl/v1/prediction_service/credentials.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service/operations.rb +100 -100
- data/lib/google/cloud/automl/v1/prediction_service/paths.rb +3 -3
- data/lib/google/cloud/automl/v1/prediction_service.rb +1 -1
- data/lib/google/cloud/automl/v1/prediction_service_services_pb.rb +30 -34
- data/lib/google/cloud/automl/v1/version.rb +1 -1
- data/lib/google/cloud/automl/v1.rb +1 -1
- data/proto_docs/google/api/resource.rb +12 -12
- data/proto_docs/google/cloud/automl/v1/annotation_payload.rb +10 -10
- data/proto_docs/google/cloud/automl/v1/annotation_spec.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/classification.rb +37 -37
- data/proto_docs/google/cloud/automl/v1/data_items.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/dataset.rb +19 -19
- data/proto_docs/google/cloud/automl/v1/detection.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/geometry.rb +7 -7
- data/proto_docs/google/cloud/automl/v1/image.rb +38 -38
- data/proto_docs/google/cloud/automl/v1/io.rb +46 -46
- data/proto_docs/google/cloud/automl/v1/model.rb +20 -20
- data/proto_docs/google/cloud/automl/v1/model_evaluation.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/operations.rb +49 -49
- data/proto_docs/google/cloud/automl/v1/prediction_service.rb +53 -53
- data/proto_docs/google/cloud/automl/v1/service.rb +115 -115
- data/proto_docs/google/cloud/automl/v1/text.rb +15 -15
- data/proto_docs/google/cloud/automl/v1/text_extraction.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/text_segment.rb +5 -5
- data/proto_docs/google/cloud/automl/v1/text_sentiment.rb +14 -14
- data/proto_docs/google/cloud/automl/v1/translation.rb +16 -16
- data/proto_docs/google/longrunning/operations.rb +30 -30
- data/proto_docs/google/protobuf/any.rb +4 -4
- data/proto_docs/google/protobuf/duration.rb +4 -4
- data/proto_docs/google/protobuf/empty.rb +2 -2
- data/proto_docs/google/protobuf/field_mask.rb +3 -3
- data/proto_docs/google/protobuf/struct.rb +18 -18
- data/proto_docs/google/protobuf/timestamp.rb +4 -4
- data/proto_docs/google/rpc/status.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e0406243769230c9e7b96dabcc4a3d057b25b86ace341552a5577ae20446566d
|
4
|
+
data.tar.gz: acf6688b0a9c7937c293dbccaa5f9790ea83f8e1e93ddb0526758620e15162c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b4d01119f7760c2007e6a9649d058098d351d4cfe62c0ac5b5e52f3a6f0392a6aed3986b6355314e1a8cef18013303169873f3274bcbc0c2b671d68efabe9ec
|
7
|
+
data.tar.gz: 91cf508c511ad83782c3b7bf1d571126137e1eaaf88235933c2c80c8387b923f76c225d3412bfe024aa5d4a6bc04f4634dc627d485052bcf174425e6de360188
|
data/AUTHENTICATION.md
CHANGED
@@ -27,7 +27,7 @@ export AUTOML_CREDENTIALS=path/to/keyfile.json
|
|
27
27
|
```ruby
|
28
28
|
require "google/cloud/automl/v1"
|
29
29
|
|
30
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
30
|
+
client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
|
31
31
|
```
|
32
32
|
|
33
33
|
## Credential Lookup
|
@@ -64,7 +64,7 @@ containers where writing files is difficult or not encouraged.
|
|
64
64
|
|
65
65
|
The environment variables that google-cloud-automl-v1
|
66
66
|
checks for credentials are configured on the service Credentials class (such as
|
67
|
-
{Google::Cloud::AutoML::V1::PredictionService::Credentials}):
|
67
|
+
{::Google::Cloud::AutoML::V1::PredictionService::Credentials}):
|
68
68
|
|
69
69
|
1. `AUTOML_CREDENTIALS` - Path to JSON file, or JSON contents
|
70
70
|
2. `AUTOML_KEYFILE` - Path to JSON file, or JSON contents
|
@@ -77,7 +77,7 @@ require "google/cloud/automl/v1"
|
|
77
77
|
|
78
78
|
ENV["AUTOML_CREDENTIALS"] = "path/to/keyfile.json"
|
79
79
|
|
80
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
80
|
+
client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
|
81
81
|
```
|
82
82
|
|
83
83
|
### Configuration
|
@@ -88,7 +88,7 @@ environment variables. Either on an individual client initialization:
|
|
88
88
|
```ruby
|
89
89
|
require "google/cloud/automl/v1"
|
90
90
|
|
91
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
|
91
|
+
client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new do |config|
|
92
92
|
config.credentials = "path/to/keyfile.json"
|
93
93
|
end
|
94
94
|
```
|
@@ -98,11 +98,11 @@ Or configured globally for all clients:
|
|
98
98
|
```ruby
|
99
99
|
require "google/cloud/automl/v1"
|
100
100
|
|
101
|
-
Google::Cloud::AutoML::V1::PredictionService::Client.configure do |config|
|
101
|
+
::Google::Cloud::AutoML::V1::PredictionService::Client.configure do |config|
|
102
102
|
config.credentials = "path/to/keyfile.json"
|
103
103
|
end
|
104
104
|
|
105
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
105
|
+
client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
|
106
106
|
```
|
107
107
|
|
108
108
|
### Cloud SDK
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ In order to use this library, you first need to go through the following steps:
|
|
25
25
|
```ruby
|
26
26
|
require "google/cloud/automl/v1"
|
27
27
|
|
28
|
-
client = Google::Cloud::AutoML::V1::PredictionService::Client.new
|
28
|
+
client = ::Google::Cloud::AutoML::V1::PredictionService::Client.new
|
29
29
|
request = my_create_request
|
30
30
|
response = client.predict request
|
31
31
|
```
|