google-cloud-spanner-admin-instance-v1 2.3.0 → 2.3.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: 56ca41c93e406f2c45f90994863f3274e769411dd8990a6da575f26ab152122b
4
- data.tar.gz: 11f51f9f7292033950d43afc43dddba760c7d7c523f12acf97864b72166c3eae
3
+ metadata.gz: ef292935a88b699b97eacbceff0f7b4c563e24c917b59da0de9fcd9568c5bf0a
4
+ data.tar.gz: 59b317d338d1071b284ead4a1de20ccee5c011851ecec550b6bb0fa8fdc6ab1b
5
5
  SHA512:
6
- metadata.gz: 1c80dfd61cf65192b7bb48d1388c3de5e1290933eeaee884e2bb9404a7d715e2459f5427b0160a47e865b87f03ca528e8d0d4bb71433393dfb41a1ad4d2fc6d9
7
- data.tar.gz: 967c693f96aa1a2cd3c2fb16080d514665d1aa89bdb51e6ab9972543398dd3ef5c329eec3e787410ef1e7eed601187e438a29c23c6a5b27a1a9082159210bc5b
6
+ metadata.gz: 5ebab0e2585b4e0d0d445c5c04adf92ecd6a65318beb8bd1394feb380ee25852f6dd0ed8cea1a2b9832f4d7a49c57d74b4ac55cd0c77f695db82ab0ee75d727b
7
+ data.tar.gz: e4743e21407b77fc4efb69417a650275c918dd942434133794ea7213cfc1551fae1902a2bcf3c09999785979a6edea98cb22a06ff8590dc053b57f5891eadd63
@@ -2827,8 +2827,6 @@ module Google
2827
2827
  # @return [::String,nil]
2828
2828
  # @!attribute [rw] credentials
2829
2829
  # Credentials to send with calls. You may provide any of the following types:
2830
- # * (`String`) The path to a service account key file in JSON format
2831
- # * (`Hash`) A service account key as a Hash
2832
2830
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2833
2831
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2834
2832
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -2837,7 +2835,26 @@ module Google
2837
2835
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2838
2836
  # * (`nil`) indicating no credentials
2839
2837
  #
2840
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
2838
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
2839
+ # is deprecated. Providing an unvalidated credential configuration to
2840
+ # Google APIs can compromise the security of your systems and data.
2841
+ #
2842
+ # @example
2843
+ #
2844
+ # # The recommended way to provide credentials is to use the `make_creds` method
2845
+ # # on the appropriate credentials class for your environment.
2846
+ #
2847
+ # require "googleauth"
2848
+ #
2849
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
2850
+ # json_key_io: ::File.open("/path/to/keyfile.json")
2851
+ # )
2852
+ #
2853
+ # client = ::Google::Cloud::Spanner::Admin::Instance::V1::InstanceAdmin::Client.new do |config|
2854
+ # config.credentials = credentials
2855
+ # end
2856
+ #
2857
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
2841
2858
  # external source for authentication to Google Cloud, you must validate it before
2842
2859
  # providing it to a Google API client library. Providing an unvalidated credential
2843
2860
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -644,8 +644,6 @@ module Google
644
644
  # @return [::String,nil]
645
645
  # @!attribute [rw] credentials
646
646
  # Credentials to send with calls. You may provide any of the following types:
647
- # * (`String`) The path to a service account key file in JSON format
648
- # * (`Hash`) A service account key as a Hash
649
647
  # * (`Google::Auth::Credentials`) A googleauth credentials object
650
648
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
651
649
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -654,7 +652,26 @@ module Google
654
652
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
655
653
  # * (`nil`) indicating no credentials
656
654
  #
657
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
655
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
656
+ # is deprecated. Providing an unvalidated credential configuration to
657
+ # Google APIs can compromise the security of your systems and data.
658
+ #
659
+ # @example
660
+ #
661
+ # # The recommended way to provide credentials is to use the `make_creds` method
662
+ # # on the appropriate credentials class for your environment.
663
+ #
664
+ # require "googleauth"
665
+ #
666
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
667
+ # json_key_io: ::File.open("/path/to/keyfile.json")
668
+ # )
669
+ #
670
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
671
+ # config.credentials = credentials
672
+ # end
673
+ #
674
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
658
675
  # external source for authentication to Google Cloud, you must validate it before
659
676
  # providing it to a Google API client library. Providing an unvalidated credential
660
677
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Instance
25
25
  module V1
26
- VERSION = "2.3.0"
26
+ VERSION = "2.3.1"
27
27
  end
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-admin-instance-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC