Class: Google::Apis::ManufacturersV1::Product

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/manufacturers_v1/classes.rb,
generated/google/apis/manufacturers_v1/representations.rb,
generated/google/apis/manufacturers_v1/representations.rb

Overview

Product data.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Product

Returns a new instance of Product



399
400
401
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 399

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

Instance Attribute Details

#content_languageString

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

Returns:

  • (String)


338
339
340
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 338

def content_language
  @content_language
end

#final_attributesGoogle::Apis::ManufacturersV1::Attributes

Attributes of the product. For more information, see https://support.google.com/manufacturers/answer/6124116. Corresponds to the JSON property finalAttributes



377
378
379
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 377

def final_attributes
  @final_attributes
end

#issuesArray<Google::Apis::ManufacturersV1::Issue>

A server-generated list of issues associated with the product. Corresponds to the JSON property issues



364
365
366
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 364

def issues
  @issues
end

#manually_deleted_attributesArray<String>

Names of the attributes of the product deleted manually via the Manufacturer Center UI. Corresponds to the JSON property manuallyDeletedAttributes

Returns:

  • (Array<String>)


371
372
373
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 371

def manually_deleted_attributes
  @manually_deleted_attributes
end

#manually_provided_attributesGoogle::Apis::ManufacturersV1::Attributes

Attributes of the product. For more information, see https://support.google.com/manufacturers/answer/6124116. Corresponds to the JSON property manuallyProvidedAttributes



331
332
333
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 331

def manually_provided_attributes
  @manually_provided_attributes
end

#nameString

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 https://support.google.com/manufacturers/answer/6124116# id. Corresponds to the JSON property name

Returns:

  • (String)


358
359
360
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 358

def name
  @name
end

#parentString

Parent ID in the format accounts/account_id`. account_id- The ID of the Manufacturer Center account. Corresponds to the JSON propertyparent`

Returns:

  • (String)


397
398
399
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 397

def parent
  @parent
end

#product_idString

The ID of the product. For more information, see https://support.google.com/manufacturers/answer/6124116#id. Corresponds to the JSON property productId

Returns:

  • (String)


384
385
386
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 384

def product_id
  @product_id
end

#target_countryString

The target country of the product as a CLDR territory code (for example, US). Corresponds to the JSON property targetCountry

Returns:

  • (String)


345
346
347
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 345

def target_country
  @target_country
end

#uploaded_attributesGoogle::Apis::ManufacturersV1::Attributes

Attributes of the product. For more information, see https://support.google.com/manufacturers/answer/6124116. Corresponds to the JSON property uploadedAttributes



390
391
392
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 390

def uploaded_attributes
  @uploaded_attributes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



404
405
406
407
408
409
410
411
412
413
414
415
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 404

def update!(**args)
  @manually_provided_attributes = args[:manually_provided_attributes] if args.key?(:manually_provided_attributes)
  @content_language = args[:content_language] if args.key?(:content_language)
  @target_country = args[:target_country] if args.key?(:target_country)
  @name = args[:name] if args.key?(:name)
  @issues = args[:issues] if args.key?(:issues)
  @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes)
  @final_attributes = args[:final_attributes] if args.key?(:final_attributes)
  @product_id = args[:product_id] if args.key?(:product_id)
  @uploaded_attributes = args[:uploaded_attributes] if args.key?(:uploaded_attributes)
  @parent = args[:parent] if args.key?(:parent)
end