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: faa74d1ec9f6dd81c98c248171f6cb7d2507875d8d4e44d06f0c5785773a5f75
4
- data.tar.gz: 15df912ef2820d87ea64b1aab8259cd5e1f8b42d75926f9ed25cd87a0a3ecfe9
3
+ metadata.gz: 0b84e8252149f037ec9bc8644d21a42238bc8a1b2067e05a567798378e750920
4
+ data.tar.gz: a44fa14f47e272a8239c4e20cc740530a4678236f6b160b0e7c044c56f7f0ebb
5
5
  SHA512:
6
- metadata.gz: a119ac0152eadba4f9d3a53d706f2c1d5e64974fe538b7eb91906c203b666885eaeac800f452c967030a36ab22f627bc3fa27818bf6af09c8cd76434d3268f28
7
- data.tar.gz: 55b43799e28087abcf0741d056392c387a459f31d194a1fcd3516d867397274f1a697379cdf2e80c93d6db24486357e1bc51087dd31e5d1b19d8aee5b2f3dff5
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: If you accept a credential configuration (JSON file or Hash) from an
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: If you accept a credential configuration (JSON file or Hash) from an
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.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Profiler
23
23
  module V2
24
- VERSION = "1.4.0"
24
+ VERSION = "1.4.1"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-profiler-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC