google-shopping-merchant-promotions-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: 7cd280b45ed308f22e935a76ac94b95fc0a164de3caa6b82ee798e46b3ff0da9
4
- data.tar.gz: 1eada24b85c453b0aedaf991f4a025886e656ba1759a0884795910062461404f
3
+ metadata.gz: a1297e13fba1979f2921dd3e0443dbc9c0fb669cc20dcb475edd87dea5bf1e55
4
+ data.tar.gz: 21aee02d097b8ae15db21de18888c3d7d8ce9eda7942fe699ad74797363a48ad
5
5
  SHA512:
6
- metadata.gz: 6ff530d9c111d49b5f92738346df31b3fb03d8f1765cccbbc583ea24fa4142312608898aac849b025c8ea17faeab4f298f4cb21b142f3ff53cbab586ef2af7b5
7
- data.tar.gz: 9e8b8abdca85de06fbee345443d35a658269fb9ba6de8ccebbb1a69fd1c5fe2f76545557020c52694008fc81020a9dc356dbc032b1290071ab8a3234004a0395
6
+ metadata.gz: af03a06686ab75d08a73a6a4d96209bb5d512d23b20b9d87ed8657b3b6414823314886c783b23cbc0a874b04ba752d3fbbbf8536c713705258b88d00066fbadf
7
+ data.tar.gz: dbb2a0725b1f7ccd2b8751dbd2f2e508e601945c987430f59dc42147c77da2d330ecc1642b40126efa8d098ce6071b0b78c353a26c69e9d97e7638cd44d541ec
@@ -515,8 +515,6 @@ module Google
515
515
  # @return [::String,nil]
516
516
  # @!attribute [rw] credentials
517
517
  # Credentials to send with calls. You may provide any of the following types:
518
- # * (`String`) The path to a service account key file in JSON format
519
- # * (`Hash`) A service account key as a Hash
520
518
  # * (`Google::Auth::Credentials`) A googleauth credentials object
521
519
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
522
520
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -525,7 +523,26 @@ module Google
525
523
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
526
524
  # * (`nil`) indicating no credentials
527
525
  #
528
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
526
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
527
+ # is deprecated. Providing an unvalidated credential configuration to
528
+ # Google APIs can compromise the security of your systems and data.
529
+ #
530
+ # @example
531
+ #
532
+ # # The recommended way to provide credentials is to use the `make_creds` method
533
+ # # on the appropriate credentials class for your environment.
534
+ #
535
+ # require "googleauth"
536
+ #
537
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
538
+ # json_key_io: ::File.open("/path/to/keyfile.json")
539
+ # )
540
+ #
541
+ # client = ::Google::Shopping::Merchant::Promotions::V1::PromotionsService::Client.new do |config|
542
+ # config.credentials = credentials
543
+ # end
544
+ #
545
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
529
546
  # external source for authentication to Google Cloud, you must validate it before
530
547
  # providing it to a Google API client library. Providing an unvalidated credential
531
548
  # 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 Promotions
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-promotions-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