Class: Google::Apis::ContentV2::Datafeed

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/content_v2/classes.rb,
generated/google/apis/content_v2/representations.rb,
generated/google/apis/content_v2/representations.rb

Overview

Datafeed data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Datafeed

Returns a new instance of Datafeed.



1670
1671
1672
# File 'generated/google/apis/content_v2/classes.rb', line 1670

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

Instance Attribute Details

#attribute_languageString

The two-letter ISO 639-1 language in which the attributes are defined in the data feed. Corresponds to the JSON property attributeLanguage

Returns:

  • (String)


1611
1612
1613
# File 'generated/google/apis/content_v2/classes.rb', line 1611

def attribute_language
  @attribute_language
end

#content_languageString

The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for targetCountry. Corresponds to the JSON property contentLanguage

Returns:

  • (String)


1617
1618
1619
# File 'generated/google/apis/content_v2/classes.rb', line 1617

def content_language
  @content_language
end

#content_typeString

The type of data feed. Corresponds to the JSON property contentType

Returns:

  • (String)


1622
1623
1624
# File 'generated/google/apis/content_v2/classes.rb', line 1622

def content_type
  @content_type
end

#fetch_scheduleGoogle::Apis::ContentV2::DatafeedFetchSchedule

The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required. Corresponds to the JSON property fetchSchedule



1630
1631
1632
# File 'generated/google/apis/content_v2/classes.rb', line 1630

def fetch_schedule
  @fetch_schedule
end

#file_nameString

The filename of the feed. All feeds must have a unique file name. Corresponds to the JSON property fileName

Returns:

  • (String)


1635
1636
1637
# File 'generated/google/apis/content_v2/classes.rb', line 1635

def file_name
  @file_name
end

#formatGoogle::Apis::ContentV2::DatafeedFormat

Format of the feed file. Corresponds to the JSON property format



1640
1641
1642
# File 'generated/google/apis/content_v2/classes.rb', line 1640

def format
  @format
end

#idString

The ID of the data feed. Corresponds to the JSON property id

Returns:

  • (String)


1645
1646
1647
# File 'generated/google/apis/content_v2/classes.rb', line 1645

def id
  @id
end

#intended_destinationsArray<String>

The list of intended destinations (corresponds to checked check boxes in Merchant Center). Corresponds to the JSON property intendedDestinations

Returns:

  • (Array<String>)


1651
1652
1653
# File 'generated/google/apis/content_v2/classes.rb', line 1651

def intended_destinations
  @intended_destinations
end

#kindString

Identifies what kind of resource this is. Value: the fixed string "content# datafeed". Corresponds to the JSON property kind

Returns:

  • (String)


1657
1658
1659
# File 'generated/google/apis/content_v2/classes.rb', line 1657

def kind
  @kind
end

#nameString

A descriptive name of the data feed. Corresponds to the JSON property name

Returns:

  • (String)


1662
1663
1664
# File 'generated/google/apis/content_v2/classes.rb', line 1662

def name
  @name
end

#target_countryString

The country where the items in the feed will be included in the search index, represented as a CLDR territory code. Corresponds to the JSON property targetCountry

Returns:

  • (String)


1668
1669
1670
# File 'generated/google/apis/content_v2/classes.rb', line 1668

def target_country
  @target_country
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
# File 'generated/google/apis/content_v2/classes.rb', line 1675

def update!(**args)
  @attribute_language = args[:attribute_language] if args.key?(:attribute_language)
  @content_language = args[:content_language] if args.key?(:content_language)
  @content_type = args[:content_type] if args.key?(:content_type)
  @fetch_schedule = args[:fetch_schedule] if args.key?(:fetch_schedule)
  @file_name = args[:file_name] if args.key?(:file_name)
  @format = args[:format] if args.key?(:format)
  @id = args[:id] if args.key?(:id)
  @intended_destinations = args[:intended_destinations] if args.key?(:intended_destinations)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @target_country = args[:target_country] if args.key?(:target_country)
end