google-cloud-vision-v1 0.9.0 → 0.10.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 +1 -1
- data/lib/google/cloud/vision/v1/image_annotator/client.rb +8 -8
- data/lib/google/cloud/vision/v1/image_annotator/operations.rb +12 -14
- data/lib/google/cloud/vision/v1/image_annotator/rest/client.rb +662 -0
- data/lib/google/cloud/vision/v1/image_annotator/rest/operations.rb +814 -0
- data/lib/google/cloud/vision/v1/image_annotator/rest/service_stub.rb +344 -0
- data/lib/google/cloud/vision/v1/image_annotator/rest.rb +55 -0
- data/lib/google/cloud/vision/v1/image_annotator.rb +7 -1
- data/lib/google/cloud/vision/v1/product_search/client.rb +24 -32
- data/lib/google/cloud/vision/v1/product_search/operations.rb +12 -14
- data/lib/google/cloud/vision/v1/product_search/rest/client.rb +1970 -0
- data/lib/google/cloud/vision/v1/product_search/rest/operations.rb +814 -0
- data/lib/google/cloud/vision/v1/product_search/rest/service_stub.rb +1178 -0
- data/lib/google/cloud/vision/v1/product_search/rest.rb +66 -0
- data/lib/google/cloud/vision/v1/product_search.rb +7 -1
- data/lib/google/cloud/vision/v1/rest.rb +38 -0
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- data/lib/google/cloud/vision/v1.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/cloud/vision/v1/image_annotator.rb +2 -1
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +18 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5d1b235d5d654b3ffb89909ecdca4725863476265556719f0859a9d5967acedd
|
4
|
+
data.tar.gz: 3cf67715c9d3dc690840dbec0b4221d7d3f763362e17e5bb84abdb97d2925f75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 304e4fda645f7641da3d109a414bbdc0c6a2cc3ecad5be1e016720f017c33fa38ac6f5127b9e00c9d2b0f02fb7b98c6cdc093983e0ebcc29ba35fd62f55f64d6
|
7
|
+
data.tar.gz: 0af6e1ca762eab95e4de8675e255886f2f9258d8a19b65edfd6766084a28c93f845e7463410d59c89070ab1865eba1cd6b3d8a7823b4dcb852f7c61cb2c9dab5
|
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
@@ -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.
|
@@ -430,14 +430,14 @@ module Google
|
|
430
430
|
# # Call the async_batch_annotate_images method.
|
431
431
|
# result = client.async_batch_annotate_images request
|
432
432
|
#
|
433
|
-
# # The returned object is of type Gapic::Operation. You can use
|
434
|
-
# #
|
435
|
-
# #
|
433
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
434
|
+
# # check the status of an operation, cancel it, or wait for results.
|
435
|
+
# # Here is how to wait for a response.
|
436
436
|
# result.wait_until_done! timeout: 60
|
437
437
|
# if result.response?
|
438
438
|
# p result.response
|
439
439
|
# else
|
440
|
-
# puts "
|
440
|
+
# puts "No response received."
|
441
441
|
# end
|
442
442
|
#
|
443
443
|
def async_batch_annotate_images request, options = nil
|
@@ -533,14 +533,14 @@ module Google
|
|
533
533
|
# # Call the async_batch_annotate_files method.
|
534
534
|
# result = client.async_batch_annotate_files request
|
535
535
|
#
|
536
|
-
# # The returned object is of type Gapic::Operation. You can use
|
537
|
-
# #
|
538
|
-
# #
|
536
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
537
|
+
# # check the status of an operation, cancel it, or wait for results.
|
538
|
+
# # Here is how to wait for a response.
|
539
539
|
# result.wait_until_done! timeout: 60
|
540
540
|
# if result.response?
|
541
541
|
# p result.response
|
542
542
|
# else
|
543
|
-
# puts "
|
543
|
+
# puts "No response received."
|
544
544
|
# end
|
545
545
|
#
|
546
546
|
def async_batch_annotate_files 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
|