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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5a9c24d642c655e380f34ad356e144e3da32d19ead8176d853735a93380ccce
|
|
4
|
+
data.tar.gz: bb73be2c49fa7b7547b7d13d559f8af5623a7604a89fa691be9a5a8707302f39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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.
|