Class: Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiDatasourcesV1beta::PrimaryProductDataSource
- 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 primary data source for local and online products.
Instance Attribute Summary collapse
-
#channel ⇒ String
Required.
-
#content_language ⇒ String
Optional.
-
#countries ⇒ Array<String>
Optional.
-
#feed_label ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrimaryProductDataSource
constructor
A new instance of PrimaryProductDataSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrimaryProductDataSource
Returns a new instance of PrimaryProductDataSource.
335 336 337 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 335 def initialize(**args) update!(**args) end |
Instance Attribute Details
#channel ⇒ String
Required. Immutable. Specifies the type of data source channel.
Corresponds to the JSON property channel
305 306 307 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 305 def channel @channel end |
#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 products without that restriction.
Corresponds to the JSON property contentLanguage
314 315 316 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 314 def content_language @content_language end |
#countries ⇒ Array<String>
Optional. The countries where the items may be displayed. Represented as a
CLDR territory code.
Corresponds to the JSON property countries
321 322 323 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 321 def countries @countries 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 products without that restriction.
Corresponds to the JSON property feedLabel
333 334 335 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 333 def feed_label @feed_label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
340 341 342 343 344 345 |
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 340 def update!(**args) @channel = args[:channel] if args.key?(:channel) @content_language = args[:content_language] if args.key?(:content_language) @countries = args[:countries] if args.key?(:countries) @feed_label = args[:feed_label] if args.key?(:feed_label) end |