google-cloud-firestore-v1 2.2.0 → 2.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: 1227b346563566776b89bab3cbff26d062b95fc8978c79c1494c3dbeac52e0a4
4
- data.tar.gz: c77caaabd3b9d35b6ff6851778b5677048223584025f0ede515aaeb0e159ff2c
3
+ metadata.gz: 26ca9602d2def8cbdd712ea2cdf7d5c0103f89b267b03a29c0a75f7007d99fb6
4
+ data.tar.gz: 858b86cc1b8c9923b126e583850cbb9e8fa2420131f26099a2e6482534005fea
5
5
  SHA512:
6
- metadata.gz: 715accee1fea1ce9588700fb2bad00d0f2c7b183418274592871fc399c15f44de2c7e82b0733128b5a22946dd8ff6697878d428f283674edd18a6873a34fb078
7
- data.tar.gz: c47aafccc6ee9f014909696777433512ad804417b57c7f15e9a25e192d739c0965537e414c33de348a8631ff34e556d35c1dfbfdc2ca1300cbfb6f08572b3a47
6
+ metadata.gz: 875ca082842a144e401a6c8fe5d2b079db18d9281b94e0c5042e80f2d8baf8ae443a8dec04c80fa385783edc6d3b4ce0f48e2953a1e76783d4c1e24ef21b7fbb
7
+ data.tar.gz: cd31e0e49b065f033bf707b4db837d788e3be42a604212b0c92eb84f0aac6fc649554409a12f81f069de8a5f11e686edacaf0defe48883fad1bc2dcea6d50027
@@ -2004,8 +2004,6 @@ module Google
2004
2004
  # @return [::String,nil]
2005
2005
  # @!attribute [rw] credentials
2006
2006
  # Credentials to send with calls. You may provide any of the following types:
2007
- # * (`String`) The path to a service account key file in JSON format
2008
- # * (`Hash`) A service account key as a Hash
2009
2007
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2010
2008
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2011
2009
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2014,7 +2012,26 @@ module Google
2014
2012
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2015
2013
  # * (`nil`) indicating no credentials
2016
2014
  #
2017
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2015
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2016
+ # is deprecated. Providing an unvalidated credential configuration to
2017
+ # Google APIs can compromise the security of your systems and data.
2018
+ #
2019
+ # @example
2020
+ #
2021
+ # # The recommended way to provide credentials is to use the `make_creds` method
2022
+ # # on the appropriate credentials class for your environment.
2023
+ #
2024
+ # require "googleauth"
2025
+ #
2026
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2027
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2028
+ # )
2029
+ #
2030
+ # client = ::Google::Cloud::Firestore::V1::Firestore::Client.new do |config|
2031
+ # config.credentials = credentials
2032
+ # end
2033
+ #
2034
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2018
2035
  # external source for authentication to Google Cloud, you must validate it before
2019
2036
  # providing it to a Google API client library. Providing an unvalidated credential
2020
2037
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Firestore
23
23
  module V1
24
- VERSION = "2.2.0"
24
+ VERSION = "2.2.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-firestore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC