Class: Google::Apis::ContentV2::DatafeedStatus

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

The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished.

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) ⇒ DatafeedStatus

Returns a new instance of DatafeedStatus



1851
1852
1853
# File 'generated/google/apis/content_v2/classes.rb', line 1851

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

Instance Attribute Details

#datafeed_idString

The ID of the feed for which the status is reported. Corresponds to the JSON property datafeedId

Returns:

  • (String)


1813
1814
1815
# File 'generated/google/apis/content_v2/classes.rb', line 1813

def datafeed_id
  @datafeed_id
end

#errorsArray<Google::Apis::ContentV2::DatafeedStatusError>

The list of errors occurring in the feed. Corresponds to the JSON property errors



1818
1819
1820
# File 'generated/google/apis/content_v2/classes.rb', line 1818

def errors
  @errors
end

#items_totalString

The number of items in the feed that were processed. Corresponds to the JSON property itemsTotal

Returns:

  • (String)


1823
1824
1825
# File 'generated/google/apis/content_v2/classes.rb', line 1823

def items_total
  @items_total
end

#items_validString

The number of items in the feed that were valid. Corresponds to the JSON property itemsValid

Returns:

  • (String)


1828
1829
1830
# File 'generated/google/apis/content_v2/classes.rb', line 1828

def items_valid
  @items_valid
end

#kindString

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

Returns:

  • (String)


1834
1835
1836
# File 'generated/google/apis/content_v2/classes.rb', line 1834

def kind
  @kind
end

#last_upload_dateString

The last date at which the feed was uploaded. Corresponds to the JSON property lastUploadDate

Returns:

  • (String)


1839
1840
1841
# File 'generated/google/apis/content_v2/classes.rb', line 1839

def last_upload_date
  @last_upload_date
end

#processing_statusString

The processing status of the feed. Corresponds to the JSON property processingStatus

Returns:

  • (String)


1844
1845
1846
# File 'generated/google/apis/content_v2/classes.rb', line 1844

def processing_status
  @processing_status
end

#warningsArray<Google::Apis::ContentV2::DatafeedStatusError>

The list of errors occurring in the feed. Corresponds to the JSON property warnings



1849
1850
1851
# File 'generated/google/apis/content_v2/classes.rb', line 1849

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
# File 'generated/google/apis/content_v2/classes.rb', line 1856

def update!(**args)
  @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id)
  @errors = args[:errors] if args.key?(:errors)
  @items_total = args[:items_total] if args.key?(:items_total)
  @items_valid = args[:items_valid] if args.key?(:items_valid)
  @kind = args[:kind] if args.key?(:kind)
  @last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date)
  @processing_status = args[:processing_status] if args.key?(:processing_status)
  @warnings = args[:warnings] if args.key?(:warnings)
end