google-iam-credentials-v1 1.4.0 → 1.4.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: 4349de5a08a25c8ef66887ff52cc973782dd0cc2682fcdf08307a41706c4445c
4
- data.tar.gz: 92381af0d902f4f00e3c2214d3f95f61d59535b9db2c400325d3977ebda13efa
3
+ metadata.gz: 82ccb25c394856e9059c96d898597cc53240627c340246eb77f00486de80f59e
4
+ data.tar.gz: ce2a780ab3faa294b4fa2f74305f570aa7266505aa269a361452f21d16fb84d0
5
5
  SHA512:
6
- metadata.gz: 813983545cdc3b955cc7e1debab0bb27dc170cc0788fdfe8454af2c582c9813ac89d29894e264a8aa5eee99964e6805f4efc3c17eabd5ed0c923a2820092f59c
7
- data.tar.gz: 761d6cb0bbe3df4f00cb892deab7d918fe3872e252015f72019e3e4e54236597be4bf309b8d2bcd516e5ef1b9109f73cef29f4938e9ac66814d69a11adc6b31f
6
+ metadata.gz: 1f5fee55dd7573ec4e2129cfd53b4756fa8cc3f2d51d77f7f498f5e2a047c9efe218e3bac3eb395544006d54628baba2d2626bf556f522a135772c52b2d318d5
7
+ data.tar.gz: d715cf077aa523c503c1d3e8287b3e5dd8d6986c6701d19c526e61845210fbd76310e8d9c37f5b7745211f8a1a21d04faaa7e8c5bcddaa6cb3e34f5ab6eb8b06
@@ -662,8 +662,6 @@ module Google
662
662
  # @return [::String,nil]
663
663
  # @!attribute [rw] credentials
664
664
  # Credentials to send with calls. You may provide any of the following types:
665
- # * (`String`) The path to a service account key file in JSON format
666
- # * (`Hash`) A service account key as a Hash
667
665
  # * (`Google::Auth::Credentials`) A googleauth credentials object
668
666
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
669
667
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -672,7 +670,26 @@ module Google
672
670
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
673
671
  # * (`nil`) indicating no credentials
674
672
  #
675
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
673
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
674
+ # is deprecated. Providing an unvalidated credential configuration to
675
+ # Google APIs can compromise the security of your systems and data.
676
+ #
677
+ # @example
678
+ #
679
+ # # The recommended way to provide credentials is to use the `make_creds` method
680
+ # # on the appropriate credentials class for your environment.
681
+ #
682
+ # require "googleauth"
683
+ #
684
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
685
+ # json_key_io: ::File.open("/path/to/keyfile.json")
686
+ # )
687
+ #
688
+ # client = ::Google::Iam::Credentials::V1::IAMCredentials::Client.new do |config|
689
+ # config.credentials = credentials
690
+ # end
691
+ #
692
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
676
693
  # external source for authentication to Google Cloud, you must validate it before
677
694
  # providing it to a Google API client library. Providing an unvalidated credential
678
695
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Iam
22
22
  module Credentials
23
23
  module V1
24
- VERSION = "1.4.0"
24
+ VERSION = "1.4.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-iam-credentials-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC