Class: Google::Apis::ContentV2_1::Datafeed
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Datafeed
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Datafeed configuration data.
Instance Attribute Summary collapse
-
#attribute_language ⇒ String
The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
-
#content_type ⇒ String
Required.
-
#fetch_schedule ⇒ Google::Apis::ContentV2_1::DatafeedFetchSchedule
The required fields vary based on the frequency of fetching.
-
#file_name ⇒ String
Required.
-
#format ⇒ Google::Apis::ContentV2_1::DatafeedFormat
Format of the feed file.
-
#id ⇒ Fixnum
Required for update.
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#name ⇒ String
Required for insert.
-
#targets ⇒ Array<Google::Apis::ContentV2_1::DatafeedTarget>
The targets this feed should apply to (country, language, destinations).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Datafeed
constructor
A new instance of Datafeed.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Datafeed
Returns a new instance of Datafeed.
3668 3669 3670 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3668 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attribute_language ⇒ String
The two-letter ISO 639-1 language in which the attributes are defined in the
data feed.
Corresponds to the JSON property attributeLanguage
3620 3621 3622 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3620 def attribute_language @attribute_language end |
#content_type ⇒ String
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
3627 3628 3629 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3627 def content_type @content_type end |
#fetch_schedule ⇒ Google::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
3635 3636 3637 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3635 def fetch_schedule @fetch_schedule end |
#file_name ⇒ String
Required. The filename of the feed. All feeds must have a unique file name.
Corresponds to the JSON property fileName
3640 3641 3642 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3640 def file_name @file_name end |
#format ⇒ Google::Apis::ContentV2_1::DatafeedFormat
Format of the feed file.
Corresponds to the JSON property format
3645 3646 3647 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3645 def format @format end |
#id ⇒ Fixnum
Required for update. The ID of the data feed.
Corresponds to the JSON property id
3650 3651 3652 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3650 def id @id end |
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "content#
datafeed
"
Corresponds to the JSON property kind
3656 3657 3658 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3656 def kind @kind end |
#name ⇒ String
Required for insert. A descriptive name of the data feed.
Corresponds to the JSON property name
3661 3662 3663 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3661 def name @name end |
#targets ⇒ Array<Google::Apis::ContentV2_1::DatafeedTarget>
The targets this feed should apply to (country, language, destinations).
Corresponds to the JSON property targets
3666 3667 3668 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3666 def targets @targets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 3673 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 |