google-cloud-language-v1beta2 0.15.0 → 0.15.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8987e2a626d2ceb11dbfb213f13b86c6cb661e062c40c43d3899719e020c47a5
|
|
4
|
+
data.tar.gz: d90c8b72b750a54639f7276d30fbe8811adc1cd1f90b2e451be668fb52bfaa1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ca84128af85dae882fd10d1b8cdb034f6d43c5aaf0a8c79e1861977e79125b619e00d3c5ae90049baa4b2f9fc4e54063084d1111d571e2e4edf15248aa7121a
|
|
7
|
+
data.tar.gz: cc922009ea961e974283c9d1650a2fcdbf68b6b6f90ecfdcfcd7f1aea21c3f726b4b797df368e3be6d33fc6e53971b453e53b87d01711443a89c7fb915c4b226
|
|
@@ -810,8 +810,6 @@ module Google
|
|
|
810
810
|
# @return [::String,nil]
|
|
811
811
|
# @!attribute [rw] credentials
|
|
812
812
|
# Credentials to send with calls. You may provide any of the following types:
|
|
813
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
814
|
-
# * (`Hash`) A service account key as a Hash
|
|
815
813
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
816
814
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
817
815
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -820,7 +818,26 @@ module Google
|
|
|
820
818
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
821
819
|
# * (`nil`) indicating no credentials
|
|
822
820
|
#
|
|
823
|
-
# Warning:
|
|
821
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
822
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
823
|
+
# Google APIs can compromise the security of your systems and data.
|
|
824
|
+
#
|
|
825
|
+
# @example
|
|
826
|
+
#
|
|
827
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
828
|
+
# # on the appropriate credentials class for your environment.
|
|
829
|
+
#
|
|
830
|
+
# require "googleauth"
|
|
831
|
+
#
|
|
832
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
833
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
834
|
+
# )
|
|
835
|
+
#
|
|
836
|
+
# client = ::Google::Cloud::Language::V1beta2::LanguageService::Client.new do |config|
|
|
837
|
+
# config.credentials = credentials
|
|
838
|
+
# end
|
|
839
|
+
#
|
|
840
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
824
841
|
# external source for authentication to Google Cloud, you must validate it before
|
|
825
842
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
826
843
|
# configuration to Google APIs can compromise the security of your systems and data.
|