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



1443
1444
1445
# File 'generated/google/apis/content_v2/classes.rb', line 1443

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)


1395
1396
1397
# File 'generated/google/apis/content_v2/classes.rb', line 1395

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)


1400
1401
1402
# File 'generated/google/apis/content_v2/classes.rb', line 1400

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



1405
1406
1407
# File 'generated/google/apis/content_v2/classes.rb', line 1405

def errors
  @errors
end

#items_totalFixnum

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

Returns:

  • (Fixnum)


1410
1411
1412
# File 'generated/google/apis/content_v2/classes.rb', line 1410

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)


1415
1416
1417
# File 'generated/google/apis/content_v2/classes.rb', line 1415

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)


1421
1422
1423
# File 'generated/google/apis/content_v2/classes.rb', line 1421

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)


1426
1427
1428
# File 'generated/google/apis/content_v2/classes.rb', line 1426

def language
  @language
end

#last_upload_dateString

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

Returns:

  • (String)


1431
1432
1433
# File 'generated/google/apis/content_v2/classes.rb', line 1431

def last_upload_date
  @last_upload_date
end

#processing_statusString

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

Returns:

  • (String)


1436
1437
1438
# File 'generated/google/apis/content_v2/classes.rb', line 1436

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



1441
1442
1443
# File 'generated/google/apis/content_v2/classes.rb', line 1441

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
# File 'generated/google/apis/content_v2/classes.rb', line 1448

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