google-shopping-merchant-notifications-v1 0.2.0 → 0.2.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: ce718a2d05dbb754a46542af412b37a38cfc0f864952f67df999b0d5b5f085d4
4
- data.tar.gz: 51a9da1205093ca10c8da1c537f1db99ce75826c95141d03a73f5ff3419cf191
3
+ metadata.gz: 0a93a712550f1ac76a87c4ce79a38136c3cfffdb721c83a42000d4625276acce
4
+ data.tar.gz: c74f1e33b06a01f4f259e95baa0ec4e2d25c165e8e08ff6cfa556a6f1cbfad1a
5
5
  SHA512:
6
- metadata.gz: 99fb2af579fcc8c6ef3aba3dcf2bac507c3e7c72ad6bdd8fa87c7052387e69d60335de4cac7cfa3c6e99b7329779b2e7645feaed80f7d5f83668d9faf23d15f0
7
- data.tar.gz: aeca40b3cb08c22d9629a5a51a0c9e95cf908f9ea70f3f2c534e9c0beb1a6c0f64a7f3db5b3ee44d8659e19543e515d6d7eff8a7afd1a9c7c377ac53c2ac7d37
6
+ metadata.gz: d8eb5e7e08444fd3d89701c4e5918ded334ccff42dd58f8609c69c0fd56324b36b811423a1eaba4ee2e9de98f96bf7d6e4fa81af41f4ed06d0d1c567b11666fb
7
+ data.tar.gz: 260b65f3d6637093422e7c44d8104041e557927212cdd65623134fd1340021577e4e49ab617000844bb157b3e5d1555a68daf776ea17a000233f5f12d9f0e592
@@ -781,8 +781,6 @@ module Google
781
781
  # @return [::String,nil]
782
782
  # @!attribute [rw] credentials
783
783
  # Credentials to send with calls. You may provide any of the following types:
784
- # * (`String`) The path to a service account key file in JSON format
785
- # * (`Hash`) A service account key as a Hash
786
784
  # * (`Google::Auth::Credentials`) A googleauth credentials object
787
785
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
788
786
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -791,7 +789,26 @@ module Google
791
789
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
792
790
  # * (`nil`) indicating no credentials
793
791
  #
794
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
792
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
793
+ # is deprecated. Providing an unvalidated credential configuration to
794
+ # Google APIs can compromise the security of your systems and data.
795
+ #
796
+ # @example
797
+ #
798
+ # # The recommended way to provide credentials is to use the `make_creds` method
799
+ # # on the appropriate credentials class for your environment.
800
+ #
801
+ # require "googleauth"
802
+ #
803
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
804
+ # json_key_io: ::File.open("/path/to/keyfile.json")
805
+ # )
806
+ #
807
+ # client = ::Google::Shopping::Merchant::Notifications::V1::NotificationsApiService::Client.new do |config|
808
+ # config.credentials = credentials
809
+ # end
810
+ #
811
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
795
812
  # external source for authentication to Google Cloud, you must validate it before
796
813
  # providing it to a Google API client library. Providing an unvalidated credential
797
814
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -22,7 +22,7 @@ module Google
22
22
  module Merchant
23
23
  module Notifications
24
24
  module V1
25
- VERSION = "0.2.0"
25
+ VERSION = "0.2.1"
26
26
  end
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-merchant-notifications-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC