Class: Google::Apis::ManufacturersV1::Product
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::Product
- 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
-
#content_language ⇒ String
The content language of the product as a two-letter ISO 639-1 language code (for example, en).
-
#final_attributes ⇒ Google::Apis::ManufacturersV1::Attributes
Attributes of the product.
-
#issues ⇒ Array<Google::Apis::ManufacturersV1::Issue>
A server-generated list of issues associated with the product.
-
#manually_deleted_attributes ⇒ Array<String>
Names of the attributes of the product deleted manually via the Manufacturer Center UI.
-
#manually_provided_attributes ⇒ Google::Apis::ManufacturersV1::Attributes
Attributes of the product.
-
#name ⇒ String
Name in the format
target_country`:`content_language`:`product_id
. -
#parent ⇒ String
Parent ID in the format
accounts/
account_id``. -
#product_id ⇒ String
The ID of the product.
-
#target_country ⇒ String
The target country of the product as a CLDR territory code (for example, US).
-
#uploaded_attributes ⇒ Google::Apis::ManufacturersV1::Attributes
Attributes of the product.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Product
constructor
A new instance of Product.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Product
Returns a new instance of Product
127 128 129 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 127 def initialize(**args) update!(**args) end |
Instance Attribute Details
#content_language ⇒ String
The content language of the product as a two-letter ISO 639-1 language code
(for example, en).
Corresponds to the JSON property contentLanguage
66 67 68 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 66 def content_language @content_language end |
#final_attributes ⇒ Google::Apis::ManufacturersV1::Attributes
Attributes of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116.
Corresponds to the JSON property finalAttributes
105 106 107 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 105 def final_attributes @final_attributes end |
#issues ⇒ Array<Google::Apis::ManufacturersV1::Issue>
A server-generated list of issues associated with the product.
Corresponds to the JSON property issues
92 93 94 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 92 def issues @issues end |
#manually_deleted_attributes ⇒ Array<String>
Names of the attributes of the product deleted manually via the
Manufacturer Center UI.
Corresponds to the JSON property manuallyDeletedAttributes
99 100 101 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 99 def manually_deleted_attributes @manually_deleted_attributes end |
#manually_provided_attributes ⇒ Google::Apis::ManufacturersV1::Attributes
Attributes of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116.
Corresponds to the JSON property manuallyProvidedAttributes
59 60 61 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 59 def manually_provided_attributes @manually_provided_attributes end |
#name ⇒ String
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
86 87 88 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 86 def name @name end |
#parent ⇒ String
Parent ID in the format accounts/
account_id`.
account_id- The ID of the Manufacturer Center account.
Corresponds to the JSON property
parent`
125 126 127 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 125 def parent @parent end |
#product_id ⇒ String
The ID of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116#id.
Corresponds to the JSON property productId
112 113 114 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 112 def product_id @product_id end |
#target_country ⇒ String
The target country of the product as a CLDR territory code (for example,
US).
Corresponds to the JSON property targetCountry
73 74 75 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 73 def target_country @target_country end |
#uploaded_attributes ⇒ Google::Apis::ManufacturersV1::Attributes
Attributes of the product. For more information, see
https://support.google.com/manufacturers/answer/6124116.
Corresponds to the JSON property uploadedAttributes
118 119 120 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 118 def uploaded_attributes @uploaded_attributes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
132 133 134 135 136 137 138 139 140 141 142 143 |
# File 'generated/google/apis/manufacturers_v1/classes.rb', line 132 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 |