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 +4 -4
- data/lib/google/iam/v2/policies/client.rb +20 -3
- data/lib/google/iam/v2/policies/operations.rb +20 -3
- data/lib/google/iam/v2/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b6da90e20ffdab0edb3ad0428c63d7b08a9e0c17d45e700e1106603501f5c2c
|
|
4
|
+
data.tar.gz: 87764a5265b3b6ef400babb8ce9760f9740581fec9a57aad060a04d90b774f11
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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:
|
|
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.
|