google-cloud-trace-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: 1be9c16a1bec242120a56054acc15639bbd4f95d6ac3593ce351291c895455b4
4
- data.tar.gz: 0421e5ec1dad409c48b47dd7dce7f75045c96806e04fb57cecef9555d637cc72
3
+ metadata.gz: 252601cc707f7589a93839455c73869b3d16bcbb9fceacec2d64694e073e0c10
4
+ data.tar.gz: 1e4b4c5069c74489080cf21d81107d1c196cc347e5a874eacf30c7ff56c66b01
5
5
  SHA512:
6
- metadata.gz: 106d10112d649cf6550da1beb928861786cf847816363173d055d83ee4d4edd34aafe834448a57e502549294d909424b2f9be30694a96a81d8c343d3a2f7c625
7
- data.tar.gz: 8e902ce89634de03415f69fdb9a7fb68b146576e3317602d95ba4951c09d46030d8d8f9a50a954b69b5cbd340956c413e66016c076542e3e5ac722f2043e51f4
6
+ metadata.gz: 23bffb61c45abdbeacba6f4e928bfe71b41ab01697393042820414e7b82f610c3193e2becf61c15d293ffb8ba789aa07ab31258704fb61c5d9c3297a28f9f8bb
7
+ data.tar.gz: 61be600b1ef9848b66dc1fb0b62760d5428ec49d30f8a562cc1d9d010be383c37d99c98cddb781f7cd51b6c00afca8fb9ce110492b56a45d3c5cfd7924d49420
@@ -465,8 +465,6 @@ module Google
465
465
  # @return [::String,nil]
466
466
  # @!attribute [rw] credentials
467
467
  # Credentials to send with calls. You may provide any of the following types:
468
- # * (`String`) The path to a service account key file in JSON format
469
- # * (`Hash`) A service account key as a Hash
470
468
  # * (`Google::Auth::Credentials`) A googleauth credentials object
471
469
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
472
470
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -475,7 +473,26 @@ module Google
475
473
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
476
474
  # * (`nil`) indicating no credentials
477
475
  #
478
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
476
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
477
+ # is deprecated. Providing an unvalidated credential configuration to
478
+ # Google APIs can compromise the security of your systems and data.
479
+ #
480
+ # @example
481
+ #
482
+ # # The recommended way to provide credentials is to use the `make_creds` method
483
+ # # on the appropriate credentials class for your environment.
484
+ #
485
+ # require "googleauth"
486
+ #
487
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
488
+ # json_key_io: ::File.open("/path/to/keyfile.json")
489
+ # )
490
+ #
491
+ # client = ::Google::Cloud::Trace::V2::TraceService::Client.new do |config|
492
+ # config.credentials = credentials
493
+ # end
494
+ #
495
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
479
496
  # external source for authentication to Google Cloud, you must validate it before
480
497
  # providing it to a Google API client library. Providing an unvalidated credential
481
498
  # 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 Trace
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-trace-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