google-cloud-datastore-v1 1.5.0 → 1.5.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: 3a9bfe6e5a07d133083c0482f13428902a0b80b9235f9e38a766d47fafd6183d
4
- data.tar.gz: 43c764c3153032438618bdb50bb60046980138cd754eb9e6683509503967c40d
3
+ metadata.gz: ff42824bd8cacdfc12267d97967aa6e860e86245aeb569224584b47f3ab262eb
4
+ data.tar.gz: c1d0fbbdfe75683472f9f69081336b4cffc34119ba1904775d84ef307551d884
5
5
  SHA512:
6
- metadata.gz: 62960861491fa827fcc1e79c8e0ac9812b85fe338a9148823ddea1ac5ed7ce762f2a7fcd33074c92d79cf26e4ee27ca64bf22064acd832f9fe315c41131e3450
7
- data.tar.gz: 111855ea3b512608144cbe31beab237a0733c417c04e624eb2d39759699632c9fb0d3e7a07cbc99ce3fc88296cc002d4b196010425feb37f1734a68efd24db35
6
+ metadata.gz: 3380590a236f8e9bb546ab3d135e70fbe8687cee1e3c6e6c8959c4c770337ff087342f44d57294533fd24215e1aaf0efd41d72f4ecbdd5ac3d8b1c04c287d48b
7
+ data.tar.gz: f0f5567c5a06460ea788188d83d7692c3415b815c69de73e76ed5bac9c41258b8d7f6d34b29dc04dcd50d4af10e471a2f1536f767cf7d2bfa0f5882500fce5eb
@@ -1089,8 +1089,6 @@ module Google
1089
1089
  # @return [::String,nil]
1090
1090
  # @!attribute [rw] credentials
1091
1091
  # Credentials to send with calls. You may provide any of the following types:
1092
- # * (`String`) The path to a service account key file in JSON format
1093
- # * (`Hash`) A service account key as a Hash
1094
1092
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1095
1093
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1096
1094
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1099,7 +1097,26 @@ module Google
1099
1097
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1100
1098
  # * (`nil`) indicating no credentials
1101
1099
  #
1102
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1100
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1101
+ # is deprecated. Providing an unvalidated credential configuration to
1102
+ # Google APIs can compromise the security of your systems and data.
1103
+ #
1104
+ # @example
1105
+ #
1106
+ # # The recommended way to provide credentials is to use the `make_creds` method
1107
+ # # on the appropriate credentials class for your environment.
1108
+ #
1109
+ # require "googleauth"
1110
+ #
1111
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1112
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1113
+ # )
1114
+ #
1115
+ # client = ::Google::Cloud::Datastore::V1::Datastore::Client.new do |config|
1116
+ # config.credentials = credentials
1117
+ # end
1118
+ #
1119
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1103
1120
  # external source for authentication to Google Cloud, you must validate it before
1104
1121
  # providing it to a Google API client library. Providing an unvalidated credential
1105
1122
  # 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 Datastore
23
23
  module V1
24
- VERSION = "1.5.0"
24
+ VERSION = "1.5.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-datastore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC