Class: Google::Apis::ContentV2::DatafeedsBatchResponseEntry

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

Overview

A batch entry encoding a single non-batch datafeeds response.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DatafeedsBatchResponseEntry

Returns a new instance of DatafeedsBatchResponseEntry.



2334
2335
2336
# File 'lib/google/apis/content_v2/classes.rb', line 2334

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

Instance Attribute Details

#batch_idFixnum

The ID of the request entry this entry responds to. Corresponds to the JSON property batchId

Returns:

  • (Fixnum)


2322
2323
2324
# File 'lib/google/apis/content_v2/classes.rb', line 2322

def batch_id
  @batch_id
end

#datafeedGoogle::Apis::ContentV2::Datafeed

Datafeed configuration data. Corresponds to the JSON property datafeed



2327
2328
2329
# File 'lib/google/apis/content_v2/classes.rb', line 2327

def datafeed
  @datafeed
end

#errorsGoogle::Apis::ContentV2::Errors

A list of errors returned by a failed batch entry. Corresponds to the JSON property errors



2332
2333
2334
# File 'lib/google/apis/content_v2/classes.rb', line 2332

def errors
  @errors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2339
2340
2341
2342
2343
# File 'lib/google/apis/content_v2/classes.rb', line 2339

def update!(**args)
  @batch_id = args[:batch_id] if args.key?(:batch_id)
  @datafeed = args[:datafeed] if args.key?(:datafeed)
  @errors = args[:errors] if args.key?(:errors)
end