google-cloud-vision-v1p4beta1 0.14.0 → 0.14.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/v1p4beta1/image_annotator/client.rb +20 -3
- data/lib/google/cloud/vision/v1p4beta1/image_annotator/operations.rb +20 -3
- data/lib/google/cloud/vision/v1p4beta1/product_search/client.rb +20 -3
- data/lib/google/cloud/vision/v1p4beta1/product_search/operations.rb +20 -3
- data/lib/google/cloud/vision/v1p4beta1/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: fcb488d48e1646a5484e26047dfa86f420bb2797a2a42aa1a4c46746e5d50fb2
|
|
4
|
+
data.tar.gz: 5987099dfb939ff9ffc8d39bb2495b1db05bc467da1dc9816ad2f372c958d995
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9347e44fa2e0e46e0eec63031f24ae467024e7d676c51e10357343f9ce994aa286297947b19b8961d505c222438c4d0e70dbf533a31e2636b16c429b24d41431
|
|
7
|
+
data.tar.gz: 9deb70b1ab5a157193583d6d50f47f169115109593993de2145d69ce823af89450e8872753bbdfeaf07326998a0eaaf553308f54a98a7d8c94974e96e601fd84
|
|
@@ -602,8 +602,6 @@ module Google
|
|
|
602
602
|
# @return [::String,nil]
|
|
603
603
|
# @!attribute [rw] credentials
|
|
604
604
|
# Credentials to send with calls. You may provide any of the following types:
|
|
605
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
606
|
-
# * (`Hash`) A service account key as a Hash
|
|
607
605
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
608
606
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
609
607
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -612,7 +610,26 @@ module Google
|
|
|
612
610
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
613
611
|
# * (`nil`) indicating no credentials
|
|
614
612
|
#
|
|
615
|
-
# Warning:
|
|
613
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
614
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
615
|
+
# Google APIs can compromise the security of your systems and data.
|
|
616
|
+
#
|
|
617
|
+
# @example
|
|
618
|
+
#
|
|
619
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
620
|
+
# # on the appropriate credentials class for your environment.
|
|
621
|
+
#
|
|
622
|
+
# require "googleauth"
|
|
623
|
+
#
|
|
624
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
625
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
626
|
+
# )
|
|
627
|
+
#
|
|
628
|
+
# client = ::Google::Cloud::Vision::V1p4beta1::ImageAnnotator::Client.new do |config|
|
|
629
|
+
# config.credentials = credentials
|
|
630
|
+
# end
|
|
631
|
+
#
|
|
632
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
616
633
|
# external source for authentication to Google Cloud, you must validate it before
|
|
617
634
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
618
635
|
# 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.
|
|
@@ -2261,8 +2261,6 @@ module Google
|
|
|
2261
2261
|
# @return [::String,nil]
|
|
2262
2262
|
# @!attribute [rw] credentials
|
|
2263
2263
|
# Credentials to send with calls. You may provide any of the following types:
|
|
2264
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
2265
|
-
# * (`Hash`) A service account key as a Hash
|
|
2266
2264
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
2267
2265
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
2268
2266
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -2271,7 +2269,26 @@ module Google
|
|
|
2271
2269
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
2272
2270
|
# * (`nil`) indicating no credentials
|
|
2273
2271
|
#
|
|
2274
|
-
# Warning:
|
|
2272
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
2273
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
2274
|
+
# Google APIs can compromise the security of your systems and data.
|
|
2275
|
+
#
|
|
2276
|
+
# @example
|
|
2277
|
+
#
|
|
2278
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
2279
|
+
# # on the appropriate credentials class for your environment.
|
|
2280
|
+
#
|
|
2281
|
+
# require "googleauth"
|
|
2282
|
+
#
|
|
2283
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
2284
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
2285
|
+
# )
|
|
2286
|
+
#
|
|
2287
|
+
# client = ::Google::Cloud::Vision::V1p4beta1::ProductSearch::Client.new do |config|
|
|
2288
|
+
# config.credentials = credentials
|
|
2289
|
+
# end
|
|
2290
|
+
#
|
|
2291
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
2275
2292
|
# external source for authentication to Google Cloud, you must validate it before
|
|
2276
2293
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
2277
2294
|
# 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.
|