google-cloud-vision-v1 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +1 -1
  4. data/lib/google/cloud/vision/v1/image_annotator/client.rb +8 -8
  5. data/lib/google/cloud/vision/v1/image_annotator/operations.rb +12 -14
  6. data/lib/google/cloud/vision/v1/image_annotator/rest/client.rb +662 -0
  7. data/lib/google/cloud/vision/v1/image_annotator/rest/operations.rb +814 -0
  8. data/lib/google/cloud/vision/v1/image_annotator/rest/service_stub.rb +344 -0
  9. data/lib/google/cloud/vision/v1/image_annotator/rest.rb +55 -0
  10. data/lib/google/cloud/vision/v1/image_annotator.rb +7 -1
  11. data/lib/google/cloud/vision/v1/image_annotator_pb.rb +1 -0
  12. data/lib/google/cloud/vision/v1/product_search/client.rb +24 -32
  13. data/lib/google/cloud/vision/v1/product_search/operations.rb +12 -14
  14. data/lib/google/cloud/vision/v1/product_search/rest/client.rb +1970 -0
  15. data/lib/google/cloud/vision/v1/product_search/rest/operations.rb +814 -0
  16. data/lib/google/cloud/vision/v1/product_search/rest/service_stub.rb +1178 -0
  17. data/lib/google/cloud/vision/v1/product_search/rest.rb +66 -0
  18. data/lib/google/cloud/vision/v1/product_search.rb +7 -1
  19. data/lib/google/cloud/vision/v1/rest.rb +38 -0
  20. data/lib/google/cloud/vision/v1/version.rb +1 -1
  21. data/lib/google/cloud/vision/v1.rb +7 -2
  22. data/proto_docs/google/api/client.rb +318 -0
  23. data/proto_docs/google/api/launch_stage.rb +71 -0
  24. data/proto_docs/google/cloud/vision/v1/image_annotator.rb +5 -1
  25. data/proto_docs/google/protobuf/empty.rb +0 -2
  26. data/proto_docs/google/rpc/status.rb +4 -2
  27. metadata +18 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aebb4578523c977c01e5bea900bf0619bfbd12e92f26053889cef42adbdacb11
4
- data.tar.gz: baa5772d5085c6614ffc93ecffc7740f1c7c9f43ab31b7525a4ac0550166b369
3
+ metadata.gz: 5d1b235d5d654b3ffb89909ecdca4725863476265556719f0859a9d5967acedd
4
+ data.tar.gz: 3cf67715c9d3dc690840dbec0b4221d7d3f763362e17e5bb84abdb97d2925f75
5
5
  SHA512:
6
- metadata.gz: 49aa986aa6ae100d0303f8e9cbf5ab1b90f9b8a5ef052538e03cb5f5e39436a8edc28ea34d35df9fd41e395b931b554761c563024a3fed9f77a6d95bbd6606eb
7
- data.tar.gz: 6d2f788ceb7e31cdbd21f095ecb8f957dd28c7f36d80245be65f747aee434f9b8999c6125b5c751672b5ef99dc467947479ab85b8031b3b4ba6671f73f93f7c9
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/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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 this
434
- # # object to check the status of an operation, cancel it, or wait
435
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
537
- # # object to check the status of an operation, cancel it, or wait
538
- # # for results. Here is how to block until completion:
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 "Error!"
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
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
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 response
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 this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
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 "Error!"
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 this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
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 "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil