Class: Google::Apis::ContentV2_1::DatafeedStatus

Inherits:
Object
  • Object
show all
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

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

Constructor Details

#initialize(**args) ⇒ DatafeedStatus

Returns a new instance of DatafeedStatus.



2457
2458
2459
# File 'lib/google/apis/content_v2_1/classes.rb', line 2457

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

Instance Attribute Details

#countryString

The country for which the status is reported, represented as a CLDR territory code. Corresponds to the JSON property country

Returns:

  • (String)


2404
2405
2406
# File 'lib/google/apis/content_v2_1/classes.rb', line 2404

def country
  @country
end

#datafeed_idFixnum

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

Returns:

  • (Fixnum)


2409
2410
2411
# File 'lib/google/apis/content_v2_1/classes.rb', line 2409

def datafeed_id
  @datafeed_id
end

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

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



2414
2415
2416
# File 'lib/google/apis/content_v2_1/classes.rb', line 2414

def errors
  @errors
end

#items_totalFixnum

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

Returns:

  • (Fixnum)


2419
2420
2421
# File 'lib/google/apis/content_v2_1/classes.rb', line 2419

def items_total
  @items_total
end

#items_validFixnum

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

Returns:

  • (Fixnum)


2424
2425
2426
# File 'lib/google/apis/content_v2_1/classes.rb', line 2424

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)


2430
2431
2432
# File 'lib/google/apis/content_v2_1/classes.rb', line 2430

def kind
  @kind
end

#languageString

The two-letter ISO 639-1 language for which the status is reported. Corresponds to the JSON property language

Returns:

  • (String)


2435
2436
2437
# File 'lib/google/apis/content_v2_1/classes.rb', line 2435

def language
  @language
end

#last_upload_dateString

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

Returns:

  • (String)


2440
2441
2442
# File 'lib/google/apis/content_v2_1/classes.rb', line 2440

def last_upload_date
  @last_upload_date
end

#processing_statusString

The processing status of the feed. Acceptable values are: - ""failure": The feed could not be processed or all items had errors." - "in progress": The feed is being processed. - "none": The feed has not yet been processed. For example, a feed that has never been uploaded will have this processing status.

  • "success": The feed was processed successfully, though some items might have had errors. Corresponds to the JSON property processingStatus

Returns:

  • (String)


2450
2451
2452
# File 'lib/google/apis/content_v2_1/classes.rb', line 2450

def processing_status
  @processing_status
end

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

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



2455
2456
2457
# File 'lib/google/apis/content_v2_1/classes.rb', line 2455

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
# File 'lib/google/apis/content_v2_1/classes.rb', line 2462

def update!(**args)
  @country = args[:country] if args.key?(:country)
  @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)
  @language = args[:language] if args.key?(:language)
  @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