google-iam-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: ec596b927e4226bcb8ba2fe8758975d1e1147adf00a4e61edb08b4dc4f8d97ac
4
- data.tar.gz: ec63662dcf1dd92c184a4884c87d1034ec7090ccd4e9772b29b1a6a33228fb26
3
+ metadata.gz: 91eb87e2b01224c862c3a635eccffcedf49a0f4818882a296eb821484b36bdc2
4
+ data.tar.gz: 7e7cf3e73080a16331df574d5e70bf6df41d97eb494cb37752265fc18938f29a
5
5
  SHA512:
6
- metadata.gz: 7149bd26b25bbcc96933957ef35139d252b641427f4a3d72b96f207a8127243ec7cdc86a3d7e6410593acfb59065120d3964cf79bb53dfb94c9203ac2017b329
7
- data.tar.gz: 0afab5dd796555dfde3c715ca8bc997c7bf03d935144e1fb75a91ff5bdf81aab2da7c37492bf6d840026ae74801bf7b2e9e81e8f21e15b3375545d4e067fb700
6
+ metadata.gz: 07ba54fbf7b52244755c02ba94acf71d92f94264dd36dd1036fda5f15dc6ed4c6d0b99d5a0d49fae9ecd186099249ddc2ce558fd1278c1bd3b389eafe546c303
7
+ data.tar.gz: 686b53bee4513a2e1cc2e428a8ddc0c3e72a84e1ce2c79730c7babc04efa1703d9da779bc9ee4c7cf1b7127df70bae1db311e15fac0f3ef3c56236ca6016cffa
@@ -527,8 +527,6 @@ module Google
527
527
  # @return [::String,nil]
528
528
  # @!attribute [rw] credentials
529
529
  # Credentials to send with calls. You may provide any of the following types:
530
- # * (`String`) The path to a service account key file in JSON format
531
- # * (`Hash`) A service account key as a Hash
532
530
  # * (`Google::Auth::Credentials`) A googleauth credentials object
533
531
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
534
532
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -537,7 +535,26 @@ module Google
537
535
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
538
536
  # * (`nil`) indicating no credentials
539
537
  #
540
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
538
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
539
+ # is deprecated. Providing an unvalidated credential configuration to
540
+ # Google APIs can compromise the security of your systems and data.
541
+ #
542
+ # @example
543
+ #
544
+ # # The recommended way to provide credentials is to use the `make_creds` method
545
+ # # on the appropriate credentials class for your environment.
546
+ #
547
+ # require "googleauth"
548
+ #
549
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
550
+ # json_key_io: ::File.open("/path/to/keyfile.json")
551
+ # )
552
+ #
553
+ # client = ::Google::Iam::V1::IAMPolicy::Client.new do |config|
554
+ # config.credentials = credentials
555
+ # end
556
+ #
557
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
541
558
  # external source for authentication to Google Cloud, you must validate it before
542
559
  # providing it to a Google API client library. Providing an unvalidated credential
543
560
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Iam
22
22
  module V1
23
- VERSION = "1.5.0"
23
+ VERSION = "1.5.1"
24
24
  end
25
25
  end
26
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-iam-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