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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 71698506fba540a9bb9a94007c2f56b5f004f497be0a9a154953b1ec12abeb03
|
|
4
|
+
data.tar.gz: 2c85fd1f4a267b04731b43465c240086207e45b91f4b01cc5f7a1b8be8646c02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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.
|