class Google::Apis::ManufacturersV1::Product

Product data.

Attributes

attributes[RW]

Attributes of the product. For more information, see support.google. com/manufacturers/answer/6124116. Corresponds to the JSON property `attributes` @return [Google::Apis::ManufacturersV1::Attributes]

content_language[RW]

The content language of the product as a two-letter ISO 639-1 language code ( for example, en). Corresponds to the JSON property `contentLanguage` @return [String]

destination_statuses[RW]

The status of the destinations. Corresponds to the JSON property `destinationStatuses` @return [Array<Google::Apis::ManufacturersV1::DestinationStatus>]

issues[RW]

A server-generated list of issues associated with the product. Corresponds to the JSON property `issues` @return [Array<Google::Apis::ManufacturersV1::Issue>]

name[RW]

Name in the format “target_country`:`content_language`:`product_id“. ` target_country` - The target country of the product as a CLDR territory code ( for example, US). `content_language` - The content language of the product as a two-letter ISO 639-1 language code (for example, en). `product_id` - The ID of the product. For more information, see support.google.com/ manufacturers/answer/6124116#id. Corresponds to the JSON property `name` @return [String]

parent[RW]

Parent ID in the format `accounts/`account_id“. `account_id` - The ID of the Manufacturer Center account. Corresponds to the JSON property `parent` @return [String]

product_id[RW]

The ID of the product. For more information, see support.google.com/ manufacturers/answer/6124116#id. Corresponds to the JSON property `productId` @return [String]

target_country[RW]

The target country of the product as a CLDR territory code (for example, US). Corresponds to the JSON property `targetCountry` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/manufacturers_v1/classes.rb, line 618
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/manufacturers_v1/classes.rb, line 623
def update!(**args)
  @attributes = args[:attributes] if args.key?(:attributes)
  @content_language = args[:content_language] if args.key?(:content_language)
  @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses)
  @issues = args[:issues] if args.key?(:issues)
  @name = args[:name] if args.key?(:name)
  @parent = args[:parent] if args.key?(:parent)
  @product_id = args[:product_id] if args.key?(:product_id)
  @target_country = args[:target_country] if args.key?(:target_country)
end