google-iam-v2 0.11.0 → 0.11.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: ad2d2f2d55c0887d1250320d42dcb1e5b5b2759ab09019cdce8e71013d276b8a
4
- data.tar.gz: 170c2bc7bc8e4992b638e686e88b2c2f2457bf129e953f1f8ef549a7de1ec624
3
+ metadata.gz: 4b6da90e20ffdab0edb3ad0428c63d7b08a9e0c17d45e700e1106603501f5c2c
4
+ data.tar.gz: 87764a5265b3b6ef400babb8ce9760f9740581fec9a57aad060a04d90b774f11
5
5
  SHA512:
6
- metadata.gz: af9ba35b98e5acaf0b182e7e918df77e2b6c5d0373763d0a2512303bd7ff3d21328b68dbae0c750686100a53514194482139cf91f51b8e8000dd3eb19eb5775b
7
- data.tar.gz: 4c82d16e231fb97dd3d2aed85028d2851dd67d76cc9275866927cdabb1a300d436878e17df67e996a003920fc1c27679104e767bca72a4bf9ad5e611dd4e1f03
6
+ metadata.gz: 6e208dd119c6f75719567d67a275abf60ef3dfc854fc6f9c39a0a208e62112b4f353b479a19ce00857376fc41c15bfc18b81d178f84cf2649e3a318e76e7c535
7
+ data.tar.gz: 675f36cad49b7dfda09cbb7842a25b5cde41bde6ea8ad37666e53caa6d24badc5a9d8d8c65c6d118a33b04e55185f62e7693c499640984efca822ec9cc779082
@@ -789,8 +789,6 @@ module Google
789
789
  # @return [::String,nil]
790
790
  # @!attribute [rw] credentials
791
791
  # Credentials to send with calls. You may provide any of the following types:
792
- # * (`String`) The path to a service account key file in JSON format
793
- # * (`Hash`) A service account key as a Hash
794
792
  # * (`Google::Auth::Credentials`) A googleauth credentials object
795
793
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
796
794
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -799,7 +797,26 @@ module Google
799
797
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
800
798
  # * (`nil`) indicating no credentials
801
799
  #
802
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
800
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
801
+ # is deprecated. Providing an unvalidated credential configuration to
802
+ # Google APIs can compromise the security of your systems and data.
803
+ #
804
+ # @example
805
+ #
806
+ # # The recommended way to provide credentials is to use the `make_creds` method
807
+ # # on the appropriate credentials class for your environment.
808
+ #
809
+ # require "googleauth"
810
+ #
811
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
812
+ # json_key_io: ::File.open("/path/to/keyfile.json")
813
+ # )
814
+ #
815
+ # client = ::Google::Iam::V2::Policies::Client.new do |config|
816
+ # config.credentials = credentials
817
+ # end
818
+ #
819
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
803
820
  # external source for authentication to Google Cloud, you must validate it before
804
821
  # providing it to a Google API client library. Providing an unvalidated credential
805
822
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -641,8 +641,6 @@ module Google
641
641
  # @return [::String,nil]
642
642
  # @!attribute [rw] credentials
643
643
  # Credentials to send with calls. You may provide any of the following types:
644
- # * (`String`) The path to a service account key file in JSON format
645
- # * (`Hash`) A service account key as a Hash
646
644
  # * (`Google::Auth::Credentials`) A googleauth credentials object
647
645
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
648
646
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -651,7 +649,26 @@ module Google
651
649
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
652
650
  # * (`nil`) indicating no credentials
653
651
  #
654
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
652
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
653
+ # is deprecated. Providing an unvalidated credential configuration to
654
+ # Google APIs can compromise the security of your systems and data.
655
+ #
656
+ # @example
657
+ #
658
+ # # The recommended way to provide credentials is to use the `make_creds` method
659
+ # # on the appropriate credentials class for your environment.
660
+ #
661
+ # require "googleauth"
662
+ #
663
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
664
+ # json_key_io: ::File.open("/path/to/keyfile.json")
665
+ # )
666
+ #
667
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
668
+ # config.credentials = credentials
669
+ # end
670
+ #
671
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
655
672
  # external source for authentication to Google Cloud, you must validate it before
656
673
  # providing it to a Google API client library. Providing an unvalidated credential
657
674
  # 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 V2
23
- VERSION = "0.11.0"
23
+ VERSION = "0.11.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-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC