google-cloud-vision-v1 1.5.0 → 1.5.1
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.
- checksums.yaml +4 -4
- data/lib/google/cloud/vision/v1/image_annotator/client.rb +20 -3
- data/lib/google/cloud/vision/v1/image_annotator/operations.rb +20 -3
- data/lib/google/cloud/vision/v1/product_search/client.rb +20 -3
- data/lib/google/cloud/vision/v1/product_search/operations.rb +20 -3
- data/lib/google/cloud/vision/v1/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88cebd746c75c4ae66377f1531e4ac41ee970edc12805ff6bff84054d9ad9d01
|
|
4
|
+
data.tar.gz: 8b398d594ecd03feaf45a25e8ed49de2e40d931c5e21c829f8db5e7c84d90687
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 03ff0968ad28d439d3845385cf3e345c79a82a5e61db4fa8269808f8a97dbdf065580d340da9754a00cad3be380d0085166b2c678de4fa311fbc71d07f707a7c
|
|
7
|
+
data.tar.gz: e05d896f0bb877046b08f7e85393c99abe2cc7e4607007e75d175fbeed4b4d2e74b43a8d434c1f2c2b0077abe8bb3f813365183fa8a71c6faa3f620c95cdebc7
|
|
@@ -682,8 +682,6 @@ module Google
|
|
|
682
682
|
# @return [::String,nil]
|
|
683
683
|
# @!attribute [rw] credentials
|
|
684
684
|
# Credentials to send with calls. You may provide any of the following types:
|
|
685
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
686
|
-
# * (`Hash`) A service account key as a Hash
|
|
687
685
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
688
686
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
689
687
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -692,7 +690,26 @@ module Google
|
|
|
692
690
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
693
691
|
# * (`nil`) indicating no credentials
|
|
694
692
|
#
|
|
695
|
-
# Warning:
|
|
693
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
694
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
695
|
+
# Google APIs can compromise the security of your systems and data.
|
|
696
|
+
#
|
|
697
|
+
# @example
|
|
698
|
+
#
|
|
699
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
700
|
+
# # on the appropriate credentials class for your environment.
|
|
701
|
+
#
|
|
702
|
+
# require "googleauth"
|
|
703
|
+
#
|
|
704
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
705
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
706
|
+
# )
|
|
707
|
+
#
|
|
708
|
+
# client = ::Google::Cloud::Vision::V1::ImageAnnotator::Client.new do |config|
|
|
709
|
+
# config.credentials = credentials
|
|
710
|
+
# end
|
|
711
|
+
#
|
|
712
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
696
713
|
# external source for authentication to Google Cloud, you must validate it before
|
|
697
714
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
698
715
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -2262,8 +2262,6 @@ module Google
|
|
|
2262
2262
|
# @return [::String,nil]
|
|
2263
2263
|
# @!attribute [rw] credentials
|
|
2264
2264
|
# Credentials to send with calls. You may provide any of the following types:
|
|
2265
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
2266
|
-
# * (`Hash`) A service account key as a Hash
|
|
2267
2265
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
2268
2266
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
2269
2267
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -2272,7 +2270,26 @@ module Google
|
|
|
2272
2270
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
2273
2271
|
# * (`nil`) indicating no credentials
|
|
2274
2272
|
#
|
|
2275
|
-
# Warning:
|
|
2273
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
2274
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
2275
|
+
# Google APIs can compromise the security of your systems and data.
|
|
2276
|
+
#
|
|
2277
|
+
# @example
|
|
2278
|
+
#
|
|
2279
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
2280
|
+
# # on the appropriate credentials class for your environment.
|
|
2281
|
+
#
|
|
2282
|
+
# require "googleauth"
|
|
2283
|
+
#
|
|
2284
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
2285
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
2286
|
+
# )
|
|
2287
|
+
#
|
|
2288
|
+
# client = ::Google::Cloud::Vision::V1::ProductSearch::Client.new do |config|
|
|
2289
|
+
# config.credentials = credentials
|
|
2290
|
+
# end
|
|
2291
|
+
#
|
|
2292
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
2276
2293
|
# external source for authentication to Google Cloud, you must validate it before
|
|
2277
2294
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
2278
2295
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|