Class: Google::Apis::ContentV2_1::Datafeed

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

Overview

Datafeed configuration 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.



1732
1733
1734
# File 'generated/google/apis/content_v2_1/classes.rb', line 1732

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)


1681
1682
1683
# File 'generated/google/apis/content_v2_1/classes.rb', line 1681

def attribute_language
  @attribute_language
end

#content_typeString

Required. The type of data feed. For product inventory feeds, only feeds for local stores, not online stores, are supported. Acceptable values are:

  • "local products"
  • "product inventory"
  • "products" Corresponds to the JSON property contentType

Returns:

  • (String)


1691
1692
1693
# File 'generated/google/apis/content_v2_1/classes.rb', line 1691

def content_type
  @content_type
end

#fetch_scheduleGoogle::Apis::ContentV2_1::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



1699
1700
1701
# File 'generated/google/apis/content_v2_1/classes.rb', line 1699

def fetch_schedule
  @fetch_schedule
end

#file_nameString

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

Returns:

  • (String)


1704
1705
1706
# File 'generated/google/apis/content_v2_1/classes.rb', line 1704

def file_name
  @file_name
end

#formatGoogle::Apis::ContentV2_1::DatafeedFormat

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



1709
1710
1711
# File 'generated/google/apis/content_v2_1/classes.rb', line 1709

def format
  @format
end

#idFixnum

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

Returns:

  • (Fixnum)


1714
1715
1716
# File 'generated/google/apis/content_v2_1/classes.rb', line 1714

def id
  @id
end

#kindString

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

Returns:

  • (String)


1720
1721
1722
# File 'generated/google/apis/content_v2_1/classes.rb', line 1720

def kind
  @kind
end

#nameString

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

Returns:

  • (String)


1725
1726
1727
# File 'generated/google/apis/content_v2_1/classes.rb', line 1725

def name
  @name
end

#targetsArray<Google::Apis::ContentV2_1::DatafeedTarget>

The targets this feed should apply to (country, language, destinations). Corresponds to the JSON property targets



1730
1731
1732
# File 'generated/google/apis/content_v2_1/classes.rb', line 1730

def targets
  @targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
# File 'generated/google/apis/content_v2_1/classes.rb', line 1737

def update!(**args)
  @attribute_language = args[:attribute_language] if args.key?(:attribute_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)
  @kind = args[:kind] if args.key?(:kind)
  @name = args[:name] if args.key?(:name)
  @targets = args[:targets] if args.key?(:targets)
end