Class: Google::Apis::MerchantapiDatasourcesV1beta::SupplementalProductDataSource

Inherits:
Object
  • Object
show all
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. After creation, you should make sure to link the supplemental product data source into one or more primary product data sources.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SupplementalProductDataSource

Returns a new instance of SupplementalProductDataSource.



774
775
776
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 774

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#content_languageString

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

Returns:

  • (String)


752
753
754
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 752

def content_language
  @content_language
end

#feed_labelString

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. The fields must 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 feedLabel

Returns:

  • (String)


765
766
767
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 765

def feed_label
  @feed_label
end

#referencing_primary_data_sourcesArray<Google::Apis::MerchantapiDatasourcesV1beta::DataSourceReference>

Output only. The (unordered and deduplicated) list of all primary data sources linked to this data source in either default or custom rules. Supplemental data source cannot be deleted before all links are removed. Corresponds to the JSON property referencingPrimaryDataSources



772
773
774
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 772

def referencing_primary_data_sources
  @referencing_primary_data_sources
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



779
780
781
782
783
# File 'lib/google/apis/merchantapi_datasources_v1beta/classes.rb', line 779

def update!(**args)
  @content_language = args[:content_language] if args.key?(:content_language)
  @feed_label = args[:feed_label] if args.key?(:feed_label)
  @referencing_primary_data_sources = args[:referencing_primary_data_sources] if args.key?(:referencing_primary_data_sources)
end