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: '095d365ae9434bfde56289ba628b5c60176431c830472ffba394f6230a45651f'
4
- data.tar.gz: cfacab91802faf31cd7bbc0041cd643a8571283d25a9d71604c346ed5807e1cf
3
+ metadata.gz: 36968266a5aff32f6fb393f15b052139c3b56dfaa0654b76340d3aba570dd80c
4
+ data.tar.gz: 47a3e8cf3dee77255aaacc0c371f167d12522f401da2cca3bc4d19d8d7510bbc
5
5
  SHA512:
6
- metadata.gz: 06123ffcac1d59f48bc2b08eae57adc93c8ea6c8838c2b5151e441c7e72204bc5a9ede6043bb52bcf4bc357e03db8b814b4fe6f30b68f994cac97d7d0e3b14b1
7
- data.tar.gz: 9fb98cef6217f2da557beed3da04d8126331a8b80c04e4bb9ca25bb2d00ed4be4a3f6944ef73623835298212d6079dc5d4363b85284acbfca6fb7412168e5f17
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: If you accept a credential configuration (JSON file or Hash) from an
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.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module Location
23
- VERSION = "1.2.0"
23
+ VERSION = "1.2.1"
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-location
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC