google-shopping-merchant-promotions-v1beta 0.5.0 → 0.5.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: 31e459451cee49533330b2411b7a7b18d22cf878f9d7004bf2503c31e0f664c5
4
- data.tar.gz: 3f536df744c0b86e72730ed1c67d898bf3ed8461f2c3d671bcca7b0debb3281a
3
+ metadata.gz: 71698506fba540a9bb9a94007c2f56b5f004f497be0a9a154953b1ec12abeb03
4
+ data.tar.gz: 2c85fd1f4a267b04731b43465c240086207e45b91f4b01cc5f7a1b8be8646c02
5
5
  SHA512:
6
- metadata.gz: 46945112523d04e766b8d09b626f97272126fcced54005820228d2ddda722e4f0198e35c7d026346ce101f1494f965d24f88f82550f9915939056ec944340829
7
- data.tar.gz: 7d740bea7fe5bee5d7db9e95be726ce0997753eafb3c9f6399baa9b09e6429e0e424490d1a03b93c1beae34b14558aa07ba122c9d0f2f5f33b30a6e89c487c76
6
+ metadata.gz: ee1b38cf4a0d0e90f7aac0ab607f3f9a062866ed1a8e4951612a37bd0538e170b4eeb147e84120a3c5e9fbf7ceab2b911a369fe3c5c873490cf0236ac5e0ca34
7
+ data.tar.gz: bbd31098ec8695dd8897f3fa1a131f0c87221405a6678c35e6d28d6efb9e5b92ca7e931735e531104add6966b1f1ab858fdc4a0ed39f0687371be4373346149e
@@ -504,8 +504,6 @@ module Google
504
504
  # @return [::String,nil]
505
505
  # @!attribute [rw] credentials
506
506
  # Credentials to send with calls. You may provide any of the following types:
507
- # * (`String`) The path to a service account key file in JSON format
508
- # * (`Hash`) A service account key as a Hash
509
507
  # * (`Google::Auth::Credentials`) A googleauth credentials object
510
508
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
511
509
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -514,7 +512,26 @@ module Google
514
512
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
515
513
  # * (`nil`) indicating no credentials
516
514
  #
517
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
515
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
516
+ # is deprecated. Providing an unvalidated credential configuration to
517
+ # Google APIs can compromise the security of your systems and data.
518
+ #
519
+ # @example
520
+ #
521
+ # # The recommended way to provide credentials is to use the `make_creds` method
522
+ # # on the appropriate credentials class for your environment.
523
+ #
524
+ # require "googleauth"
525
+ #
526
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
527
+ # json_key_io: ::File.open("/path/to/keyfile.json")
528
+ # )
529
+ #
530
+ # client = ::Google::Shopping::Merchant::Promotions::V1beta::PromotionsService::Client.new do |config|
531
+ # config.credentials = credentials
532
+ # end
533
+ #
534
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
518
535
  # external source for authentication to Google Cloud, you must validate it before
519
536
  # providing it to a Google API client library. Providing an unvalidated credential
520
537
  # 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 V1beta
25
- VERSION = "0.5.0"
25
+ VERSION = "0.5.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-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC