google-cloud-monitoring-metrics_scope-v1 1.5.0 → 1.5.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: 90e093e55a48bbd91185f407a6cf713b6f73b0ad18dcd38cbf1cbc9f9ce3a7e2
|
|
4
|
+
data.tar.gz: ddc1a90d32b62748b203f5d65038790cc78055abc65a9d1934e2c5bbe48225b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3fe24d322677e5719c51061a46080f41a39ee82e7d6ac8022ced2f45ae9ed6a35e9e5b730a6ecce84e27b9f14e3eddbb6a47ef48c5e2062e45098798eca80994
|
|
7
|
+
data.tar.gz: 955ed4d6e88ea168d3b2ff1a198e675ccf6387be1b2bd99a9f26e8ea4039e594c3e8d44fc0be87072323d5bb7b622d004f6ff713649261a3af1262b94181251b
|
|
@@ -605,8 +605,6 @@ module Google
|
|
|
605
605
|
# @return [::String,nil]
|
|
606
606
|
# @!attribute [rw] credentials
|
|
607
607
|
# Credentials to send with calls. You may provide any of the following types:
|
|
608
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
609
|
-
# * (`Hash`) A service account key as a Hash
|
|
610
608
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
611
609
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
612
610
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -615,7 +613,26 @@ module Google
|
|
|
615
613
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
616
614
|
# * (`nil`) indicating no credentials
|
|
617
615
|
#
|
|
618
|
-
# Warning:
|
|
616
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
617
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
618
|
+
# Google APIs can compromise the security of your systems and data.
|
|
619
|
+
#
|
|
620
|
+
# @example
|
|
621
|
+
#
|
|
622
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
623
|
+
# # on the appropriate credentials class for your environment.
|
|
624
|
+
#
|
|
625
|
+
# require "googleauth"
|
|
626
|
+
#
|
|
627
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
628
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
629
|
+
# )
|
|
630
|
+
#
|
|
631
|
+
# client = ::Google::Cloud::Monitoring::MetricsScope::V1::MetricsScopes::Client.new do |config|
|
|
632
|
+
# config.credentials = credentials
|
|
633
|
+
# end
|
|
634
|
+
#
|
|
635
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
619
636
|
# external source for authentication to Google Cloud, you must validate it before
|
|
620
637
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
621
638
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -643,8 +643,6 @@ module Google
|
|
|
643
643
|
# @return [::String,nil]
|
|
644
644
|
# @!attribute [rw] credentials
|
|
645
645
|
# Credentials to send with calls. You may provide any of the following types:
|
|
646
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
647
|
-
# * (`Hash`) A service account key as a Hash
|
|
648
646
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
649
647
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
650
648
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -653,7 +651,26 @@ module Google
|
|
|
653
651
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
654
652
|
# * (`nil`) indicating no credentials
|
|
655
653
|
#
|
|
656
|
-
# Warning:
|
|
654
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
655
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
656
|
+
# Google APIs can compromise the security of your systems and data.
|
|
657
|
+
#
|
|
658
|
+
# @example
|
|
659
|
+
#
|
|
660
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
661
|
+
# # on the appropriate credentials class for your environment.
|
|
662
|
+
#
|
|
663
|
+
# require "googleauth"
|
|
664
|
+
#
|
|
665
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
666
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
667
|
+
# )
|
|
668
|
+
#
|
|
669
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
|
670
|
+
# config.credentials = credentials
|
|
671
|
+
# end
|
|
672
|
+
#
|
|
673
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
657
674
|
# external source for authentication to Google Cloud, you must validate it before
|
|
658
675
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
659
676
|
# configuration to Google APIs can compromise the security of your systems and data.
|