google-cloud-optimization-v1 0.14.0 → 0.14.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: 2700f1f5286198f429e876c8565839d001ce3c923459810a6a406ae2dbed9241
|
|
4
|
+
data.tar.gz: f4a549b3a0759bd6fa6223275f04199e273d45131cfe7b996f17ace86c58f136
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7aefe3c74f66762741f1394f887a143bbb68ba00fd58550d8fd43ecc5c4f18766bf680abee8b84f4906d1c63d829db5c8498aeb7db186261fd95bbdda1d468b
|
|
7
|
+
data.tar.gz: 3e96493bb67a6c8a6c58df9947a798472229fc9eb4d996bc0b3605be3659e3eb6effbb62bef1220a847e00773a1f880465946b6a9a5d08bb5dc2775290d6bcfc
|
|
@@ -651,8 +651,6 @@ module Google
|
|
|
651
651
|
# @return [::String,nil]
|
|
652
652
|
# @!attribute [rw] credentials
|
|
653
653
|
# Credentials to send with calls. You may provide any of the following types:
|
|
654
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
655
|
-
# * (`Hash`) A service account key as a Hash
|
|
656
654
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
657
655
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
658
656
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -661,7 +659,26 @@ module Google
|
|
|
661
659
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
662
660
|
# * (`nil`) indicating no credentials
|
|
663
661
|
#
|
|
664
|
-
# Warning:
|
|
662
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
663
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
664
|
+
# Google APIs can compromise the security of your systems and data.
|
|
665
|
+
#
|
|
666
|
+
# @example
|
|
667
|
+
#
|
|
668
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
669
|
+
# # on the appropriate credentials class for your environment.
|
|
670
|
+
#
|
|
671
|
+
# require "googleauth"
|
|
672
|
+
#
|
|
673
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
674
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
675
|
+
# )
|
|
676
|
+
#
|
|
677
|
+
# client = ::Google::Cloud::Optimization::V1::FleetRouting::Client.new do |config|
|
|
678
|
+
# config.credentials = credentials
|
|
679
|
+
# end
|
|
680
|
+
#
|
|
681
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
665
682
|
# external source for authentication to Google Cloud, you must validate it before
|
|
666
683
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
667
684
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -642,8 +642,6 @@ module Google
|
|
|
642
642
|
# @return [::String,nil]
|
|
643
643
|
# @!attribute [rw] credentials
|
|
644
644
|
# Credentials to send with calls. You may provide any of the following types:
|
|
645
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
646
|
-
# * (`Hash`) A service account key as a Hash
|
|
647
645
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
648
646
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
649
647
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -652,7 +650,26 @@ module Google
|
|
|
652
650
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
653
651
|
# * (`nil`) indicating no credentials
|
|
654
652
|
#
|
|
655
|
-
# Warning:
|
|
653
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
654
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
655
|
+
# Google APIs can compromise the security of your systems and data.
|
|
656
|
+
#
|
|
657
|
+
# @example
|
|
658
|
+
#
|
|
659
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
660
|
+
# # on the appropriate credentials class for your environment.
|
|
661
|
+
#
|
|
662
|
+
# require "googleauth"
|
|
663
|
+
#
|
|
664
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
665
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
666
|
+
# )
|
|
667
|
+
#
|
|
668
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
669
|
+
# config.credentials = credentials
|
|
670
|
+
# end
|
|
671
|
+
#
|
|
672
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
656
673
|
# external source for authentication to Google Cloud, you must validate it before
|
|
657
674
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
658
675
|
# configuration to Google APIs can compromise the security of your systems and data.
|