google-cloud-service_health-v1 2.2.0 → 2.2.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: 9dad64c4e9789c8f7270e087958343ec707d3ec19c20787676d1a25eebe28dc9
4
- data.tar.gz: cec8a3ed8edc59564e00d5bdb1f9ad4f3b3d5bf8ad41ee50db8796ffc3054c2c
3
+ metadata.gz: b5a9c24d642c655e380f34ad356e144e3da32d19ead8176d853735a93380ccce
4
+ data.tar.gz: bb73be2c49fa7b7547b7d13d559f8af5623a7604a89fa691be9a5a8707302f39
5
5
  SHA512:
6
- metadata.gz: 5dbc620230b23e27bbd84c056863bf57e881b54957124b2ce597a37e48eda3f66c16fcb836c6c5d1cff8ccc60698e4ea25e13611cc0d22135abe7326385500da
7
- data.tar.gz: 239f7575030b958d3918f1d487b85d2c821fddc0d0498945a55c079bf01cca1f01e523cadc696388ec9dabc87a89a57707afa13a8859d20dbbdeb3b5579d3f50
6
+ metadata.gz: 044d021aad629317a89dbd4c2276343d80ad591d204bdefde99924fc503548f2da1e2fb8da58ed9fa8f9b81a9b5137b9df864cb4064c35194fef5d72355533cc
7
+ data.tar.gz: 5ee768083c11a6f832d7c3ff66453ee692ca0c3e2a73678ba59a0b4fe24c38cd4dec84823f2362736c63f29613478069a5f0c6c3273fd5317ae8d6fdb413d112
@@ -936,8 +936,6 @@ module Google
936
936
  # @return [::String,nil]
937
937
  # @!attribute [rw] credentials
938
938
  # Credentials to send with calls. You may provide any of the following types:
939
- # * (`String`) The path to a service account key file in JSON format
940
- # * (`Hash`) A service account key as a Hash
941
939
  # * (`Google::Auth::Credentials`) A googleauth credentials object
942
940
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
943
941
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -946,7 +944,26 @@ module Google
946
944
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
947
945
  # * (`nil`) indicating no credentials
948
946
  #
949
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
947
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
948
+ # is deprecated. Providing an unvalidated credential configuration to
949
+ # Google APIs can compromise the security of your systems and data.
950
+ #
951
+ # @example
952
+ #
953
+ # # The recommended way to provide credentials is to use the `make_creds` method
954
+ # # on the appropriate credentials class for your environment.
955
+ #
956
+ # require "googleauth"
957
+ #
958
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
959
+ # json_key_io: ::File.open("/path/to/keyfile.json")
960
+ # )
961
+ #
962
+ # client = ::Google::Cloud::ServiceHealth::V1::ServiceHealth::Client.new do |config|
963
+ # config.credentials = credentials
964
+ # end
965
+ #
966
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
950
967
  # external source for authentication to Google Cloud, you must validate it before
951
968
  # providing it to a Google API client library. Providing an unvalidated credential
952
969
  # 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 ServiceHealth
23
23
  module V1
24
- VERSION = "2.2.0"
24
+ VERSION = "2.2.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-service_health-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC