google-cloud-maintenance-api-v1beta 0.2.0 → 0.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: d98356f40fa7bebe7f776cd78340e4627b68ca90db83e199a02127af8bfaa033
|
|
4
|
+
data.tar.gz: 6fefdc856559e75f16623b9d1b6fac089ef1af1d2f835c5ae015bad18662255b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf7e8246430641ddf1af1f0a0989eaa6ddfc855f7a157a9ad33aad153e2b465d0b1b0af3ed324261fe53f5cb4963789a9f5737b84f3dc0e1225e7b1368ba063d
|
|
7
|
+
data.tar.gz: 16e88516c60040175118768764080dfe5d0b0e4cb22e156f75cc619f6d03fd5ca56a2b27e471dabbd56207a03bac8eaf09306aaa0cfaa63d25228dceff00ddef
|
|
@@ -538,8 +538,6 @@ module Google
|
|
|
538
538
|
# @return [::String,nil]
|
|
539
539
|
# @!attribute [rw] credentials
|
|
540
540
|
# Credentials to send with calls. You may provide any of the following types:
|
|
541
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
542
|
-
# * (`Hash`) A service account key as a Hash
|
|
543
541
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
544
542
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
545
543
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -548,7 +546,26 @@ module Google
|
|
|
548
546
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
549
547
|
# * (`nil`) indicating no credentials
|
|
550
548
|
#
|
|
551
|
-
# Warning:
|
|
549
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
550
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
551
|
+
# Google APIs can compromise the security of your systems and data.
|
|
552
|
+
#
|
|
553
|
+
# @example
|
|
554
|
+
#
|
|
555
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
556
|
+
# # on the appropriate credentials class for your environment.
|
|
557
|
+
#
|
|
558
|
+
# require "googleauth"
|
|
559
|
+
#
|
|
560
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
561
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
562
|
+
# )
|
|
563
|
+
#
|
|
564
|
+
# client = ::Google::Cloud::Maintenance::Api::V1beta::Maintenance::Client.new do |config|
|
|
565
|
+
# config.credentials = credentials
|
|
566
|
+
# end
|
|
567
|
+
#
|
|
568
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
552
569
|
# external source for authentication to Google Cloud, you must validate it before
|
|
553
570
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
554
571
|
# configuration to Google APIs can compromise the security of your systems and data.
|