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 +4 -4
- data/lib/google/iam/v1/iam_policy/client.rb +20 -3
- data/lib/google/iam/v1/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: 91eb87e2b01224c862c3a635eccffcedf49a0f4818882a296eb821484b36bdc2
|
|
4
|
+
data.tar.gz: 7e7cf3e73080a16331df574d5e70bf6df41d97eb494cb37752265fc18938f29a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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.
|