google-cloud-media_translation-v1beta1 0.13.0 → 0.13.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: 753a55d1bbbcdd73e690fe576298b016eacff4d01d3815d3a1b98c0de588e6d1
|
|
4
|
+
data.tar.gz: 5d338f98ab33e828a9d4ded13612b168bcfe0c8810d317cbc6d5a2df86e8d20b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3f0975343bd36c63f7ec7998c2eb0e5e90c12cf3be54d489bc6c6199a78c4140f443ef17972e5b48512ee82df984e228317dd782c15f234cf34910bb83a4954
|
|
7
|
+
data.tar.gz: f966f1b34594b3e4fc78ecfb1cba986d87a67ab354f70c1e8d139cc861e6a2d5c29a43d9305be05b46a1bc8940df8d45dafc20c5253eafbc5e88ba00be5860fb
|
|
@@ -302,8 +302,6 @@ module Google
|
|
|
302
302
|
# @return [::String,nil]
|
|
303
303
|
# @!attribute [rw] credentials
|
|
304
304
|
# Credentials to send with calls. You may provide any of the following types:
|
|
305
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
306
|
-
# * (`Hash`) A service account key as a Hash
|
|
307
305
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
308
306
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
309
307
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -312,7 +310,26 @@ module Google
|
|
|
312
310
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
313
311
|
# * (`nil`) indicating no credentials
|
|
314
312
|
#
|
|
315
|
-
# Warning:
|
|
313
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
314
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
315
|
+
# Google APIs can compromise the security of your systems and data.
|
|
316
|
+
#
|
|
317
|
+
# @example
|
|
318
|
+
#
|
|
319
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
320
|
+
# # on the appropriate credentials class for your environment.
|
|
321
|
+
#
|
|
322
|
+
# require "googleauth"
|
|
323
|
+
#
|
|
324
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
325
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
326
|
+
# )
|
|
327
|
+
#
|
|
328
|
+
# client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new do |config|
|
|
329
|
+
# config.credentials = credentials
|
|
330
|
+
# end
|
|
331
|
+
#
|
|
332
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
316
333
|
# external source for authentication to Google Cloud, you must validate it before
|
|
317
334
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
318
335
|
# configuration to Google APIs can compromise the security of your systems and data.
|