google-cloud-datastore-admin-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: 2a23b05ea24b6ca9de9381a3aeca5ed796b33d5dfb06c65cd2f4fb8b7c5ed75d
4
- data.tar.gz: f5c9fe9c7fa4a57898a02d88c61819779e1383cb3808fd5ca2035cb99e3b08ec
3
+ metadata.gz: 6760361c9ec8d9da7d411bb086655bf48c042c22da204ae65ad59255b34771ee
4
+ data.tar.gz: 861150b345d3d8c0c2dc1d99a24f677c8b0f646e0685d4b4c89658b87967fd98
5
5
  SHA512:
6
- metadata.gz: 1717bcd7dc65f5d39b16cda8f050da1282a47b34049ad92a3660cfcba8461cac645859017fa74b63831e3170e70cc5793bc5a22ec856b4d60785c6a3c20972cd
7
- data.tar.gz: c3bbd8a7d3df929dec2cfc1aa865d4fd52fc0865801bdf072c321b06b2bee3854dc57a19fd5fb5721e28ebc6fd1491a633980b4d7d8c1f589b0cb387775555e2
6
+ metadata.gz: c31cdde20c2f72b554686352212c063f1f22c707cf809bfba5f1caba0ab8447b9a8466b4693cfdc910d8f03bf37b58f20ba10776f976c52927b286d6cdf4b45b
7
+ data.tar.gz: c3f385bd0b35a4fd599e1761b78068cdde563d7fd52eabb21fe03a74a38560a049e617741959fa55377d46c048c7a980387fcdefe2b3a1a0908e18b2742cfd04
@@ -947,8 +947,6 @@ module Google
947
947
  # @return [::String,nil]
948
948
  # @!attribute [rw] credentials
949
949
  # Credentials to send with calls. You may provide any of the following types:
950
- # * (`String`) The path to a service account key file in JSON format
951
- # * (`Hash`) A service account key as a Hash
952
950
  # * (`Google::Auth::Credentials`) A googleauth credentials object
953
951
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
954
952
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -957,7 +955,26 @@ module Google
957
955
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
958
956
  # * (`nil`) indicating no credentials
959
957
  #
960
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
958
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
959
+ # is deprecated. Providing an unvalidated credential configuration to
960
+ # Google APIs can compromise the security of your systems and data.
961
+ #
962
+ # @example
963
+ #
964
+ # # The recommended way to provide credentials is to use the `make_creds` method
965
+ # # on the appropriate credentials class for your environment.
966
+ #
967
+ # require "googleauth"
968
+ #
969
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
970
+ # json_key_io: ::File.open("/path/to/keyfile.json")
971
+ # )
972
+ #
973
+ # client = ::Google::Cloud::Datastore::Admin::V1::DatastoreAdmin::Client.new do |config|
974
+ # config.credentials = credentials
975
+ # end
976
+ #
977
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
961
978
  # external source for authentication to Google Cloud, you must validate it before
962
979
  # providing it to a Google API client library. Providing an unvalidated credential
963
980
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -643,8 +643,6 @@ module Google
643
643
  # @return [::String,nil]
644
644
  # @!attribute [rw] credentials
645
645
  # Credentials to send with calls. You may provide any of the following types:
646
- # * (`String`) The path to a service account key file in JSON format
647
- # * (`Hash`) A service account key as a Hash
648
646
  # * (`Google::Auth::Credentials`) A googleauth credentials object
649
647
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
650
648
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -653,7 +651,26 @@ module Google
653
651
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
654
652
  # * (`nil`) indicating no credentials
655
653
  #
656
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
654
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
655
+ # is deprecated. Providing an unvalidated credential configuration to
656
+ # Google APIs can compromise the security of your systems and data.
657
+ #
658
+ # @example
659
+ #
660
+ # # The recommended way to provide credentials is to use the `make_creds` method
661
+ # # on the appropriate credentials class for your environment.
662
+ #
663
+ # require "googleauth"
664
+ #
665
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
666
+ # json_key_io: ::File.open("/path/to/keyfile.json")
667
+ # )
668
+ #
669
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
670
+ # config.credentials = credentials
671
+ # end
672
+ #
673
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
657
674
  # external source for authentication to Google Cloud, you must validate it before
658
675
  # providing it to a Google API client library. Providing an unvalidated credential
659
676
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -22,7 +22,7 @@ module Google
22
22
  module Datastore
23
23
  module Admin
24
24
  module V1
25
- VERSION = "1.5.0"
25
+ VERSION = "1.5.1"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-datastore-admin-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