google-cloud-org_policy-v2 1.6.0 → 1.6.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: 1d5cfa9d51c6f086fdaca8b01c57fd1d601cade3109c646ab55a8f57bc6d9885
4
- data.tar.gz: 1364809449e67d2c76dc21c5c804670dc4e178a665d9886e07515c3f146328a4
3
+ metadata.gz: 8ec699f9f75d2233b4483bcb4866d49a635b61fa0cccf440b0a62a20bf6bc3da
4
+ data.tar.gz: 16b03a3b0c85b4c770310f2ae7bee193acf1fe6f2731b044db5b344a7d19a4fe
5
5
  SHA512:
6
- metadata.gz: 2181088055e24ac64fe177ab465d5ccdd87edac2a0d22f342a7bae422cb4ab8cbaa37f7ffb2277560880bdb2cc4618cae20cd654156f08641d0ab5991644cd8b
7
- data.tar.gz: a7bd243797fc0e435633467c3423c773e14e796856252e617bf9ce0de42dc21e76c02a343554ed6411a9724dff7e14f25b455f7016d45a1af5c4f8dbb51edbb0
6
+ metadata.gz: a6f8037d2e061b65a180130cc8186c63d211a7fbcddc5d4232afcdcf13300acab21622d3dcf5f34d71bf29e3eea2dd97139041a36e7037d430b2708f6db37d36
7
+ data.tar.gz: 9b2a07f8694358e50014f4c62a779123f0ab2a289d4b31bd78eeb52d31f60b0e9304e35009e3346ef350e058dd006fc21be2382f4b60fa02267ec61c87b2a4a1
@@ -1441,8 +1441,6 @@ module Google
1441
1441
  # @return [::String,nil]
1442
1442
  # @!attribute [rw] credentials
1443
1443
  # Credentials to send with calls. You may provide any of the following types:
1444
- # * (`String`) The path to a service account key file in JSON format
1445
- # * (`Hash`) A service account key as a Hash
1446
1444
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1447
1445
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1448
1446
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1451,7 +1449,26 @@ module Google
1451
1449
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1452
1450
  # * (`nil`) indicating no credentials
1453
1451
  #
1454
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1452
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1453
+ # is deprecated. Providing an unvalidated credential configuration to
1454
+ # Google APIs can compromise the security of your systems and data.
1455
+ #
1456
+ # @example
1457
+ #
1458
+ # # The recommended way to provide credentials is to use the `make_creds` method
1459
+ # # on the appropriate credentials class for your environment.
1460
+ #
1461
+ # require "googleauth"
1462
+ #
1463
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1464
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1465
+ # )
1466
+ #
1467
+ # client = ::Google::Cloud::OrgPolicy::V2::OrgPolicy::Client.new do |config|
1468
+ # config.credentials = credentials
1469
+ # end
1470
+ #
1471
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1455
1472
  # external source for authentication to Google Cloud, you must validate it before
1456
1473
  # providing it to a Google API client library. Providing an unvalidated credential
1457
1474
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module OrgPolicy
23
23
  module V2
24
- VERSION = "1.6.0"
24
+ VERSION = "1.6.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-cloud-org_policy-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC