Class: Google::Apis::MerchantapiDatasourcesV1beta::SupplementalProductDataSource
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::SupplementalProductDataSource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_datasources_v1beta/classes.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb,
lib/google/apis/merchantapi_datasources_v1beta/representations.rb
Overview
The supplemental data source for local and online products.
Instance Attribute Summary collapse
-
#content_language ⇒ String
Optional.
-
#feed_label ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SupplementalProductDataSource
constructor
A new instance of SupplementalProductDataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SupplementalProductDataSource
Returns a new instance of SupplementalProductDataSource.
529 530 531 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 529 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_language ⇒ String
Optional. Immutable. The two-letter ISO 639-1 language of the items in the
data source. feedLabel
and contentLanguage
must be either both set or
unset. The fields can only be unset for data sources without file input. If
set, the data source will only accept products matching this combination. If
unset, the data source will accept produts without that restriction.
Corresponds to the JSON property contentLanguage
515 516 517 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 515 def content_language @content_language end |
#feed_label ⇒ String
Optional. Immutable. The feed label that is specified on the data source level.
Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and
dashes (-). See also migration to feed labels. feedLabel
and
contentLanguage
must be either both set or unset for data sources with
product content type. They must be set for data sources with a file input. If
set, the data source will only accept products matching this combination. If
unset, the data source will accept produts without that restriction.
Corresponds to the JSON property feedLabel
527 528 529 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 527 def feed_label @feed_label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
534 535 536 537 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 534 def update!(**args) @content_language = args[:content_language] if args.key?(:content_language) @feed_label = args[:feed_label] if args.key?(:feed_label) end |