google-cloud-profiler-v2 1.4.0 → 1.4.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: 0b84e8252149f037ec9bc8644d21a42238bc8a1b2067e05a567798378e750920
|
|
4
|
+
data.tar.gz: a44fa14f47e272a8239c4e20cc740530a4678236f6b160b0e7c044c56f7f0ebb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '08019705b0610632326dca44746d9ef3735add923531a6a063f42eb41fce1bc604d89757a02f05240cba1a6990bf125b172e4a8aff3a30c540f5868fad114973'
|
|
7
|
+
data.tar.gz: 1e3cd3c61aa8765b205a2b13e5bbe4b0a2e973c3f9cb2dec1aff3307490ac173c205689267399fc9cb8d9f11cc5fe81efc84a2a41577f6c84cbe69b806ff1106
|
|
@@ -325,8 +325,6 @@ module Google
|
|
|
325
325
|
# @return [::String,nil]
|
|
326
326
|
# @!attribute [rw] credentials
|
|
327
327
|
# Credentials to send with calls. You may provide any of the following types:
|
|
328
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
329
|
-
# * (`Hash`) A service account key as a Hash
|
|
330
328
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
331
329
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
332
330
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -335,7 +333,26 @@ module Google
|
|
|
335
333
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
336
334
|
# * (`nil`) indicating no credentials
|
|
337
335
|
#
|
|
338
|
-
# Warning:
|
|
336
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
337
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
338
|
+
# Google APIs can compromise the security of your systems and data.
|
|
339
|
+
#
|
|
340
|
+
# @example
|
|
341
|
+
#
|
|
342
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
343
|
+
# # on the appropriate credentials class for your environment.
|
|
344
|
+
#
|
|
345
|
+
# require "googleauth"
|
|
346
|
+
#
|
|
347
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
348
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
349
|
+
# )
|
|
350
|
+
#
|
|
351
|
+
# client = ::Google::Cloud::Profiler::V2::ExportService::Client.new do |config|
|
|
352
|
+
# config.credentials = credentials
|
|
353
|
+
# end
|
|
354
|
+
#
|
|
355
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
339
356
|
# external source for authentication to Google Cloud, you must validate it before
|
|
340
357
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
341
358
|
# configuration to Google APIs can compromise the security of your systems and data.
|
|
@@ -531,8 +531,6 @@ module Google
|
|
|
531
531
|
# @return [::String,nil]
|
|
532
532
|
# @!attribute [rw] credentials
|
|
533
533
|
# Credentials to send with calls. You may provide any of the following types:
|
|
534
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
535
|
-
# * (`Hash`) A service account key as a Hash
|
|
536
534
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
537
535
|
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
538
536
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
@@ -541,7 +539,26 @@ module Google
|
|
|
541
539
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
|
542
540
|
# * (`nil`) indicating no credentials
|
|
543
541
|
#
|
|
544
|
-
# Warning:
|
|
542
|
+
# @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
|
|
543
|
+
# is deprecated. Providing an unvalidated credential configuration to
|
|
544
|
+
# Google APIs can compromise the security of your systems and data.
|
|
545
|
+
#
|
|
546
|
+
# @example
|
|
547
|
+
#
|
|
548
|
+
# # The recommended way to provide credentials is to use the `make_creds` method
|
|
549
|
+
# # on the appropriate credentials class for your environment.
|
|
550
|
+
#
|
|
551
|
+
# require "googleauth"
|
|
552
|
+
#
|
|
553
|
+
# credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
|
|
554
|
+
# json_key_io: ::File.open("/path/to/keyfile.json")
|
|
555
|
+
# )
|
|
556
|
+
#
|
|
557
|
+
# client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
|
|
558
|
+
# config.credentials = credentials
|
|
559
|
+
# end
|
|
560
|
+
#
|
|
561
|
+
# @note Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
545
562
|
# external source for authentication to Google Cloud, you must validate it before
|
|
546
563
|
# providing it to a Google API client library. Providing an unvalidated credential
|
|
547
564
|
# configuration to Google APIs can compromise the security of your systems and data.
|