Class: Google::Apis::ContentV2::ProductStatus

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 product, i.e., information about a product computed asynchronously by the data quality analysis.

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

Returns a new instance of ProductStatus.


5574
5575
5576
# File 'generated/google/apis/content_v2/classes.rb', line 5574

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

Instance Attribute Details

#creation_dateString

Date on which the item has been created, in ISO 8601 format. Corresponds to the JSON property creationDate

Returns:

  • (String)

5531
5532
5533
# File 'generated/google/apis/content_v2/classes.rb', line 5531

def creation_date
  @creation_date
end

#data_quality_issuesArray<Google::Apis::ContentV2::ProductStatusDataQualityIssue>

A list of data quality issues associated with the product. Corresponds to the JSON property dataQualityIssues


5536
5537
5538
# File 'generated/google/apis/content_v2/classes.rb', line 5536

def data_quality_issues
  @data_quality_issues
end

#destination_statusesArray<Google::Apis::ContentV2::ProductStatusDestinationStatus>

The intended destinations for the product. Corresponds to the JSON property destinationStatuses


5541
5542
5543
# File 'generated/google/apis/content_v2/classes.rb', line 5541

def destination_statuses
  @destination_statuses
end

#google_expiration_dateString

Date on which the item expires in Google Shopping, in ISO 8601 format. Corresponds to the JSON property googleExpirationDate

Returns:

  • (String)

5546
5547
5548
# File 'generated/google/apis/content_v2/classes.rb', line 5546

def google_expiration_date
  @google_expiration_date
end

#kindString

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

Returns:

  • (String)

5552
5553
5554
# File 'generated/google/apis/content_v2/classes.rb', line 5552

def kind
  @kind
end

#last_update_dateString

Date on which the item has been last updated, in ISO 8601 format. Corresponds to the JSON property lastUpdateDate

Returns:

  • (String)

5557
5558
5559
# File 'generated/google/apis/content_v2/classes.rb', line 5557

def last_update_date
  @last_update_date
end

The link to the product. Corresponds to the JSON property link

Returns:

  • (String)

5562
5563
5564
# File 'generated/google/apis/content_v2/classes.rb', line 5562

def link
  @link
end

#product_idString

The id of the product for which status is reported. Corresponds to the JSON property productId

Returns:

  • (String)

5567
5568
5569
# File 'generated/google/apis/content_v2/classes.rb', line 5567

def product_id
  @product_id
end

#titleString

The title of the product. Corresponds to the JSON property title

Returns:

  • (String)

5572
5573
5574
# File 'generated/google/apis/content_v2/classes.rb', line 5572

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
# File 'generated/google/apis/content_v2/classes.rb', line 5579

def update!(**args)
  @creation_date = args[:creation_date] if args.key?(:creation_date)
  @data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
  @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses)
  @google_expiration_date = args[:google_expiration_date] if args.key?(:google_expiration_date)
  @kind = args[:kind] if args.key?(:kind)
  @last_update_date = args[:last_update_date] if args.key?(:last_update_date)
  @link = args[:link] if args.key?(:link)
  @product_id = args[:product_id] if args.key?(:product_id)
  @title = args[:title] if args.key?(:title)
end