google-shopping-merchant-data_sources-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: 357766e3bd4f6afc34cfac471804a0c2bece6ab4a8a77ad610a4bd929186f681
4
- data.tar.gz: c15e1abeda10b263745e9c189a8e4bf62a95b20faa754b16506bd9fadf6caa64
3
+ metadata.gz: b534bdd4c6aeeeafb59a43a2022ffd49172045850a0e52af5edb938c5e72dbb1
4
+ data.tar.gz: bf8c7872000afc9a0acb2a0340338d0f083de0b820348520d20994307e1824a6
5
5
  SHA512:
6
- metadata.gz: 4d4a34a2c583c190b9e58a7c0190148392faaa88ace23e1b94131c9beb17ed76a198f9e55e90bb8f2d54d585f7d2fdad33b25209aee3551c3da7f572b7defacf
7
- data.tar.gz: a5b8e94b607ea41d6b5e4c6e488f5bfc70c807b8605c9f4c3d86766a8fc6efe5b2125e69ffa161eca78ddf8ab4e013c47100c8900575f4f8ade9a06e5eee1e97
6
+ metadata.gz: ef9e9210fa1643c7de0daafc73105f1c1dd382bffc0545095d6906f46b83692a914616a282421febc29b78fb880a54fc1010f88cc983bf739a287a6039a962cf
7
+ data.tar.gz: aed3ce6aaf901feebbf04132ad7003e896959343302053bcf534a22f2c9732affeff757e411d0855ae68ae4b8a4233df2617ecf7fbd1377616562ecff6830603
@@ -777,8 +777,6 @@ module Google
777
777
  # @return [::String,nil]
778
778
  # @!attribute [rw] credentials
779
779
  # Credentials to send with calls. You may provide any of the following types:
780
- # * (`String`) The path to a service account key file in JSON format
781
- # * (`Hash`) A service account key as a Hash
782
780
  # * (`Google::Auth::Credentials`) A googleauth credentials object
783
781
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
784
782
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -787,7 +785,26 @@ module Google
787
785
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
788
786
  # * (`nil`) indicating no credentials
789
787
  #
790
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
788
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
789
+ # is deprecated. Providing an unvalidated credential configuration to
790
+ # Google APIs can compromise the security of your systems and data.
791
+ #
792
+ # @example
793
+ #
794
+ # # The recommended way to provide credentials is to use the `make_creds` method
795
+ # # on the appropriate credentials class for your environment.
796
+ #
797
+ # require "googleauth"
798
+ #
799
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
800
+ # json_key_io: ::File.open("/path/to/keyfile.json")
801
+ # )
802
+ #
803
+ # client = ::Google::Shopping::Merchant::DataSources::V1::DataSourcesService::Client.new do |config|
804
+ # config.credentials = credentials
805
+ # end
806
+ #
807
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
791
808
  # external source for authentication to Google Cloud, you must validate it before
792
809
  # providing it to a Google API client library. Providing an unvalidated credential
793
810
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -312,8 +312,6 @@ module Google
312
312
  # @return [::String,nil]
313
313
  # @!attribute [rw] credentials
314
314
  # Credentials to send with calls. You may provide any of the following types:
315
- # * (`String`) The path to a service account key file in JSON format
316
- # * (`Hash`) A service account key as a Hash
317
315
  # * (`Google::Auth::Credentials`) A googleauth credentials object
318
316
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
319
317
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -322,7 +320,26 @@ module Google
322
320
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
323
321
  # * (`nil`) indicating no credentials
324
322
  #
325
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
323
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
324
+ # is deprecated. Providing an unvalidated credential configuration to
325
+ # Google APIs can compromise the security of your systems and data.
326
+ #
327
+ # @example
328
+ #
329
+ # # The recommended way to provide credentials is to use the `make_creds` method
330
+ # # on the appropriate credentials class for your environment.
331
+ #
332
+ # require "googleauth"
333
+ #
334
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
335
+ # json_key_io: ::File.open("/path/to/keyfile.json")
336
+ # )
337
+ #
338
+ # client = ::Google::Shopping::Merchant::DataSources::V1::FileUploadsService::Client.new do |config|
339
+ # config.credentials = credentials
340
+ # end
341
+ #
342
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
326
343
  # external source for authentication to Google Cloud, you must validate it before
327
344
  # providing it to a Google API client library. Providing an unvalidated credential
328
345
  # 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 DataSources
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-data_sources-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