google-cloud-translate-v3 1.7.0 → 1.7.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: 7b9860b998d7ec533a5f5c37bbf25b8efb4b87e283bb83850e78ba0394d1a51b
|
|
4
|
+
data.tar.gz: 52e50f751ab00dc5e52837cf80290f30d8e715ba4ae76bbc2c5c1c06cca0de57
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2b17cf35a376bf8c8f210cde9002d4308dc9e3d2a4b2b0790fcfff52834734edc9283d498300e9c411226d2887737734077e8b64026a3ea69464c4ed1739b499
|
|
7
|
+
data.tar.gz: 3b176cf8f9faae523ddb63f31096565f817e3551128a2ce3977086e89788219d0b63bd7a098297bed002cdb2778838075fc627140aa42a1b32305bea761bbd4b
|
|
@@ -4184,8 +4184,6 @@ module Google
|
|
|
4184
4184
|
# @return [::String,nil]
|
|
4185
4185
|
# @!attribute [rw] credentials
|
|
4186
4186
|
# Credentials to send with calls. You may provide any of the following types:
|
|
4187
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
4188
|
-
# * (`Hash`) A service account key as a Hash
|
|
4189
4187
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
4190
4188
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
4191
4189
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -4194,7 +4192,26 @@ module Google
|
|
|
4194
4192
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
4195
4193
|
# * (`nil`) indicating no credentials
|
|
4196
4194
|
#
|
|
4197
|
-
# Warning:
|
|
4195
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
4196
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
4197
|
+
# Google APIs can compromise the security of your systems and data.
|
|
4198
|
+
#
|
|
4199
|
+
# @example
|
|
4200
|
+
#
|
|
4201
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
4202
|
+
# # on the appropriate credentials class for your environment.
|
|
4203
|
+
#
|
|
4204
|
+
# require "googleauth"
|
|
4205
|
+
#
|
|
4206
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
4207
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
4208
|
+
# )
|
|
4209
|
+
#
|
|
4210
|
+
# client = ::Google::Cloud::Translate::V3::TranslationService::Client.new do |config|
|
|
4211
|
+
# config.credentials = credentials
|
|
4212
|
+
# end
|
|
4213
|
+
#
|
|
4214
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
4198
4215
|
# external source for authentication to Google Cloud, you must validate it before
|
|
4199
4216
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
4200
4217
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -650,8 +650,6 @@ module Google
|
|
|
650
650
|
# @return [::String,nil]
|
|
651
651
|
# @!attribute [rw] credentials
|
|
652
652
|
# Credentials to send with calls. You may provide any of the following types:
|
|
653
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
654
|
-
# * (`Hash`) A service account key as a Hash
|
|
655
653
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
656
654
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
657
655
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -660,7 +658,26 @@ module Google
|
|
|
660
658
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
661
659
|
# * (`nil`) indicating no credentials
|
|
662
660
|
#
|
|
663
|
-
# Warning:
|
|
661
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
662
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
663
|
+
# Google APIs can compromise the security of your systems and data.
|
|
664
|
+
#
|
|
665
|
+
# @example
|
|
666
|
+
#
|
|
667
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
668
|
+
# # on the appropriate credentials class for your environment.
|
|
669
|
+
#
|
|
670
|
+
# require "googleauth"
|
|
671
|
+
#
|
|
672
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
673
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
674
|
+
# )
|
|
675
|
+
#
|
|
676
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
677
|
+
# config.credentials = credentials
|
|
678
|
+
# end
|
|
679
|
+
#
|
|
680
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
664
681
|
# external source for authentication to Google Cloud, you must validate it before
|
|
665
682
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
666
683
|
# configuration to Google APIs can compromise the security of your systems and data.
|