google-cloud-location 1.2.0 → 1.2.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: 36968266a5aff32f6fb393f15b052139c3b56dfaa0654b76340d3aba570dd80c
|
|
4
|
+
data.tar.gz: 47a3e8cf3dee77255aaacc0c371f167d12522f401da2cca3bc4d19d8d7510bbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88d9f6cb8d3d4eae63de39005773040b2a14fa84e482502e83a6c8e726b5d0d862ee47172ee7ce314bd368553f8393b22c7050a3cff46ddb520ba61af34c3678
|
|
7
|
+
data.tar.gz: 22a1154f092d52ec2bcf0bea16beb9e595b8615819a97407bee301a4ad3673e4721b1fb47c46d9b4b51b0b6ce3749fe2ef4f59e3de29a7b92f6c13e451871893
|
|
@@ -399,8 +399,6 @@ module Google
|
|
|
399
399
|
# @return [::String,nil]
|
|
400
400
|
# @!attribute [rw] credentials
|
|
401
401
|
# Credentials to send with calls. You may provide any of the following types:
|
|
402
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
403
|
-
# * (`Hash`) A service account key as a Hash
|
|
404
402
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
405
403
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
406
404
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -409,7 +407,26 @@ module Google
|
|
|
409
407
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
410
408
|
# * (`nil`) indicating no credentials
|
|
411
409
|
#
|
|
412
|
-
# Warning:
|
|
410
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
411
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
412
|
+
# Google APIs can compromise the security of your systems and data.
|
|
413
|
+
#
|
|
414
|
+
# @example
|
|
415
|
+
#
|
|
416
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
417
|
+
# # on the appropriate credentials class for your environment.
|
|
418
|
+
#
|
|
419
|
+
# require "googleauth"
|
|
420
|
+
#
|
|
421
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
422
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
423
|
+
# )
|
|
424
|
+
#
|
|
425
|
+
# client = ::Google::Cloud::Location::Locations::Client.new do |config|
|
|
426
|
+
# config.credentials = credentials
|
|
427
|
+
# end
|
|
428
|
+
#
|
|
429
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
413
430
|
# external source for authentication to Google Cloud, you must validate it before
|
|
414
431
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
415
432
|
# configuration to Google APIs can compromise the security of your systems and data.
|