google-shopping-merchant-data_sources-v1 0.2.0 → 0.3.0

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: df6a5f90fbf1a5db0f47b5f2f632e81313c49cd72ab9402ab25c7a230eace897
4
+ data.tar.gz: 4ca1c21b89cc351637b4fb0bb9791e2ad51629fa7594c4f7189f428ec85dc10d
5
5
  SHA512:
6
- metadata.gz: 4d4a34a2c583c190b9e58a7c0190148392faaa88ace23e1b94131c9beb17ed76a198f9e55e90bb8f2d54d585f7d2fdad33b25209aee3551c3da7f572b7defacf
7
- data.tar.gz: a5b8e94b607ea41d6b5e4c6e488f5bfc70c807b8605c9f4c3d86766a8fc6efe5b2125e69ffa161eca78ddf8ab4e013c47100c8900575f4f8ade9a06e5eee1e97
6
+ metadata.gz: 6cf6c2ee5ffd7a71dd862e95b3c45f31ede7c28a0ba4039e23d75536c0c4987631d26f03f590c62a43e72113ad7536c91e9de64291a3f00299be90aaf8f2bcae
7
+ data.tar.gz: bc7f3ee1adcb7f92571f5bceea0d3825325712e6a918fece8df6410d20b5076655f85bed8cce1b6776efd6ef649ccd321f20b9790fa962887d8a93452ae03b40
@@ -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.3.0"
26
26
  end
27
27
  end
28
28
  end
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
8
8
  require 'google/shopping/type/types_pb'
9
9
 
10
10
 
11
- descriptor_data = "\n=google/shopping/merchant/datasources/v1/datasourcetypes.proto\x12\'google.shopping.merchant.datasources.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a google/shopping/type/types.proto\"\x9d\x06\n\x18PrimaryProductDataSource\x12\x1c\n\x0clegacy_local\x18\x0b \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x1f\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x01\x88\x01\x01\x12\x16\n\tcountries\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12h\n\x0c\x64\x65\x66\x61ult_rule\x18\x07 \x01(\x0b\x32M.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.DefaultRuleB\x03\xe0\x41\x01\x12\"\n\x15\x63ontains_custom_rules\x18\t \x01(\x08\x42\x03\xe0\x41\x03\x12h\n\x0c\x64\x65stinations\x18\n \x03(\x0b\x32M.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.DestinationB\x03\xe0\x41\x01\x1ap\n\x0b\x44\x65\x66\x61ultRule\x12\x61\n\x16take_from_data_sources\x18\x01 \x03(\x0b\x32<.google.shopping.merchant.datasources.v1.DataSourceReferenceB\x03\xe0\x41\x02\x1a\xf4\x01\n\x0b\x44\x65stination\x12\x46\n\x0b\x64\x65stination\x18\x01 \x01(\x0e\x32\x31.google.shopping.type.Destination.DestinationEnum\x12\x62\n\x05state\x18\x02 \x01(\x0e\x32S.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.Destination.State\"9\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x42\r\n\x0b_feed_labelB\x13\n\x11_content_language\"\xf8\x01\n\x1dSupplementalProductDataSource\x12\x1f\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x01\x88\x01\x01\x12k\n referencing_primary_data_sources\x18\x07 \x03(\x0b\x32<.google.shopping.merchant.datasources.v1.DataSourceReferenceB\x03\xe0\x41\x03\x42\r\n\x0b_feed_labelB\x13\n\x11_content_language\"X\n\x18LocalInventoryDataSource\x12\x1a\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"[\n\x1bRegionalInventoryDataSource\x12\x1a\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"W\n\x13PromotionDataSource\x12\x1e\n\x0etarget_country\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"\x19\n\x17ProductReviewDataSource\"\x1a\n\x18MerchantReviewDataSource\"\x8e\x01\n\x13\x44\x61taSourceReference\x12\x0e\n\x04self\x18\x01 \x01(\x08H\x00\x12\'\n\x18primary_data_source_name\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12,\n\x1dsupplemental_data_source_name\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x42\x10\n\x0e\x64\x61ta_source_idB\x9c\x02\n+com.google.shopping.merchant.datasources.v1B\x14\x44\x61tasourcetypesProtoP\x01ZScloud.google.com/go/shopping/merchant/datasources/apiv1/datasourcespb;datasourcespb\xaa\x02\'Google.Shopping.Merchant.DataSources.V1\xca\x02\'Google\\Shopping\\Merchant\\DataSources\\V1\xea\x02+Google::Shopping::Merchant::DataSources::V1b\x06proto3"
11
+ descriptor_data = "\n=google/shopping/merchant/datasources/v1/datasourcetypes.proto\x12\'google.shopping.merchant.datasources.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a google/shopping/type/types.proto\"\xf9\x05\n\x18PrimaryProductDataSource\x12\x1c\n\x0clegacy_local\x18\x0b \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x05\x12\x1f\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x01\x88\x01\x01\x12\x16\n\tcountries\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12h\n\x0c\x64\x65\x66\x61ult_rule\x18\x07 \x01(\x0b\x32M.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.DefaultRuleB\x03\xe0\x41\x01\x12h\n\x0c\x64\x65stinations\x18\n \x03(\x0b\x32M.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.DestinationB\x03\xe0\x41\x01\x1ap\n\x0b\x44\x65\x66\x61ultRule\x12\x61\n\x16take_from_data_sources\x18\x01 \x03(\x0b\x32<.google.shopping.merchant.datasources.v1.DataSourceReferenceB\x03\xe0\x41\x02\x1a\xf4\x01\n\x0b\x44\x65stination\x12\x46\n\x0b\x64\x65stination\x18\x01 \x01(\x0e\x32\x31.google.shopping.type.Destination.DestinationEnum\x12\x62\n\x05state\x18\x02 \x01(\x0e\x32S.google.shopping.merchant.datasources.v1.PrimaryProductDataSource.Destination.State\"9\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x45NABLED\x10\x01\x12\x0c\n\x08\x44ISABLED\x10\x02\x42\r\n\x0b_feed_labelB\x13\n\x11_content_language\"\xf8\x01\n\x1dSupplementalProductDataSource\x12\x1f\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x00\x88\x01\x01\x12%\n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x01\xe0\x41\x05H\x01\x88\x01\x01\x12k\n referencing_primary_data_sources\x18\x07 \x03(\x0b\x32<.google.shopping.merchant.datasources.v1.DataSourceReferenceB\x03\xe0\x41\x03\x42\r\n\x0b_feed_labelB\x13\n\x11_content_language\"X\n\x18LocalInventoryDataSource\x12\x1a\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"[\n\x1bRegionalInventoryDataSource\x12\x1a\n\nfeed_label\x18\x04 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x05 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"W\n\x13PromotionDataSource\x12\x1e\n\x0etarget_country\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12 \n\x10\x63ontent_language\x18\x02 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\"\x19\n\x17ProductReviewDataSource\"\x1a\n\x18MerchantReviewDataSource\"\x8e\x01\n\x13\x44\x61taSourceReference\x12\x0e\n\x04self\x18\x01 \x01(\x08H\x00\x12\'\n\x18primary_data_source_name\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12,\n\x1dsupplemental_data_source_name\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x42\x10\n\x0e\x64\x61ta_source_idB\x9c\x02\n+com.google.shopping.merchant.datasources.v1B\x14\x44\x61tasourcetypesProtoP\x01ZScloud.google.com/go/shopping/merchant/datasources/apiv1/datasourcespb;datasourcespb\xaa\x02\'Google.Shopping.Merchant.DataSources.V1\xca\x02\'Google\\Shopping\\Merchant\\DataSources\\V1\xea\x02+Google::Shopping::Merchant::DataSources::V1b\x06proto3"
12
12
 
13
13
  pool = Google::Protobuf::DescriptorPool.generated_pool
14
14
 
@@ -67,11 +67,6 @@ module Google
67
67
  # @return [::Google::Shopping::Merchant::DataSources::V1::PrimaryProductDataSource::DefaultRule]
68
68
  # Optional. Default rule management of the data source. If set, the linked
69
69
  # data sources will be replaced.
70
- # @!attribute [r] contains_custom_rules
71
- # @return [::Boolean]
72
- # Output only. The existing data source setup contains at least one custom
73
- # (non-default) rule and therefore its management through the
74
- # `default_rule_data_sources` field should be treated with caution.
75
70
  # @!attribute [rw] destinations
76
71
  # @return [::Array<::Google::Shopping::Merchant::DataSources::V1::PrimaryProductDataSource::Destination>]
77
72
  # Optional. A list of destinations describing where products of the data
@@ -86,21 +86,11 @@ module Google
86
86
  extend ::Google::Protobuf::MessageExts::ClassMethods
87
87
 
88
88
  # The required fields vary based on the frequency of fetching. For a
89
- # monthly
90
- # fetch schedule,
91
- # `day of
92
- # month`
93
- # and
94
- # [hour of
95
- # day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
96
- # are required. For a weekly fetch schedule,
97
- # [day of
98
- # week][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#dayofweek]
99
- # and [hour of
100
- # day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
101
- # are required. For a daily fetch schedule, only an [hour of
102
- # day][https://developers.google.com/merchant/api/reference/rest/datasources_v1beta/accounts.dataSources#timeofday]
103
- # is required.
89
+ # monthly fetch schedule, `day of month` and [hour of
90
+ # day](../Shared.Types/TimeOfDay) are required. For a weekly fetch
91
+ # schedule, [day of week](../Shared.Types/DayOfWeek) and [hour of
92
+ # day](../Shared.Types/TimeOfDay) are required. For a daily fetch schedule,
93
+ # only an [hour of day](../Shared.Types/TimeOfDay) is required.
104
94
  module Frequency
105
95
  # Frequency unspecified.
106
96
  FREQUENCY_UNSPECIFIED = 0
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.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC