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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90af1ca7ee6c5b4733fb24cfd3d3ae2a4fce345688247d5a8c2b813f40d5e7b9
4
- data.tar.gz: fe441dd14da1bd0a73e284c800ea5480169ffc60157e88a57dfa7bb355803d32
3
+ metadata.gz: 5d1b235d5d654b3ffb89909ecdca4725863476265556719f0859a9d5967acedd
4
+ data.tar.gz: 3cf67715c9d3dc690840dbec0b4221d7d3f763362e17e5bb84abdb97d2925f75
5
5
  SHA512:
6
- metadata.gz: 6e7b766a0709037d15aed5ba3fe90b33bd548f44f6e4c8c459a8abab8f4cf642a9a29ccbd6713d9d45106a88ad78e7075ad8b72200161e42c74b400df38f1a3c
7
- data.tar.gz: cec8cc37fdd096e2c19182c90faef35a9f37a133a6491cd55d94bcc2d7e6b3aa14511764be26b6fc3a36431b2d2687147b6ae36175ba45f6c159399b2de481bc
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