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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a1297e13fba1979f2921dd3e0443dbc9c0fb669cc20dcb475edd87dea5bf1e55
|
|
4
|
+
data.tar.gz: 21aee02d097b8ae15db21de18888c3d7d8ce9eda7942fe699ad74797363a48ad
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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:
|
|
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.
|