google-cloud-vision-v1p3beta1 0.18.0 → 0.18.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/v1p3beta1/image_annotator/client.rb +20 -3
- data/lib/google/cloud/vision/v1p3beta1/image_annotator/operations.rb +20 -3
- data/lib/google/cloud/vision/v1p3beta1/product_search/client.rb +20 -3
- data/lib/google/cloud/vision/v1p3beta1/product_search/operations.rb +20 -3
- data/lib/google/cloud/vision/v1p3beta1/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: adf91a44df8e71f7427bb3a6ecd48369649c3b7e444420858d5d77d1119af8f9
|
|
4
|
+
data.tar.gz: 0a02c89020c0d97029d0ab424c2d67aef40a742918fe39ee24d7393203c75986
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79e52d8250f29693f1be81295a43b14b1d7fa56697437d1b08896b094e34dcb81a49734f00b16b8c3670995d6979f4b74dd8e903c932afcc16004cb64e08ca55
|
|
7
|
+
data.tar.gz: b9cbb44717d7da0f5f55c8ab543dad66361b1259aff9e2085cef99fb3085f412a606f6a9a56f40302a7c41064fea74d6336e3ddae3372c730590205c2a4e0912
|
|
@@ -412,8 +412,6 @@ module Google
|
|
|
412
412
|
# @return [::String,nil]
|
|
413
413
|
# @!attribute [rw] credentials
|
|
414
414
|
# Credentials to send with calls. You may provide any of the following types:
|
|
415
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
416
|
-
# * (`Hash`) A service account key as a Hash
|
|
417
415
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
418
416
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
419
417
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -422,7 +420,26 @@ module Google
|
|
|
422
420
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
423
421
|
# * (`nil`) indicating no credentials
|
|
424
422
|
#
|
|
425
|
-
# Warning:
|
|
423
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
424
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
425
|
+
# Google APIs can compromise the security of your systems and data.
|
|
426
|
+
#
|
|
427
|
+
# @example
|
|
428
|
+
#
|
|
429
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
430
|
+
# # on the appropriate credentials class for your environment.
|
|
431
|
+
#
|
|
432
|
+
# require "googleauth"
|
|
433
|
+
#
|
|
434
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
435
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
436
|
+
# )
|
|
437
|
+
#
|
|
438
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ImageAnnotator::Client.new do |config|
|
|
439
|
+
# config.credentials = credentials
|
|
440
|
+
# end
|
|
441
|
+
#
|
|
442
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
426
443
|
# external source for authentication to Google Cloud, you must validate it before
|
|
427
444
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
428
445
|
# 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.
|
|
@@ -2139,8 +2139,6 @@ module Google
|
|
|
2139
2139
|
# @return [::String,nil]
|
|
2140
2140
|
# @!attribute [rw] credentials
|
|
2141
2141
|
# Credentials to send with calls. You may provide any of the following types:
|
|
2142
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
2143
|
-
# * (`Hash`) A service account key as a Hash
|
|
2144
2142
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
2145
2143
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
2146
2144
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -2149,7 +2147,26 @@ module Google
|
|
|
2149
2147
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
2150
2148
|
# * (`nil`) indicating no credentials
|
|
2151
2149
|
#
|
|
2152
|
-
# Warning:
|
|
2150
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
2151
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
2152
|
+
# Google APIs can compromise the security of your systems and data.
|
|
2153
|
+
#
|
|
2154
|
+
# @example
|
|
2155
|
+
#
|
|
2156
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
2157
|
+
# # on the appropriate credentials class for your environment.
|
|
2158
|
+
#
|
|
2159
|
+
# require "googleauth"
|
|
2160
|
+
#
|
|
2161
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
2162
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
2163
|
+
# )
|
|
2164
|
+
#
|
|
2165
|
+
# client = ::Google::Cloud::Vision::V1p3beta1::ProductSearch::Client.new do |config|
|
|
2166
|
+
# config.credentials = credentials
|
|
2167
|
+
# end
|
|
2168
|
+
#
|
|
2169
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
2153
2170
|
# external source for authentication to Google Cloud, you must validate it before
|
|
2154
2171
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
2155
2172
|
# 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.
|