Class: Google::Apis::ManufacturersV1::Product
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::Product
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/manufacturers_v1/classes.rb,
lib/google/apis/manufacturers_v1/representations.rb,
lib/google/apis/manufacturers_v1/representations.rb
Overview
Product data.
Instance Attribute Summary collapse
-
#attributes ⇒ Google::Apis::ManufacturersV1::Attributes
Attributes of the product.
-
#content_language ⇒ String
The content language of the product as a two-letter ISO 639-1 language code ( for example, en).
-
#destination_statuses ⇒ Array<Google::Apis::ManufacturersV1::DestinationStatus>
The status of the destinations.
-
#feed_label ⇒ String
Optional.
-
#issues ⇒ Array<Google::Apis::ManufacturersV1::Issue>
A server-generated list of issues associated with 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).
Instance Method Summary collapse
-
#initialize(**args) ⇒ Product
constructor
A new instance of Product.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Product
Returns a new instance of Product.
1167 1168 1169 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1167 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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 attributes
1117 1118 1119 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1117 def attributes @attributes end |
#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
1123 1124 1125 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1123 def content_language @content_language end |
#destination_statuses ⇒ Array<Google::Apis::ManufacturersV1::DestinationStatus>
The status of the destinations.
Corresponds to the JSON property destinationStatuses
1128 1129 1130 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1128 def destination_statuses @destination_statuses end |
#feed_label ⇒ String
Optional. The feed label for the product.
Corresponds to the JSON property feedLabel
1133 1134 1135 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1133 def feed_label @feed_label end |
#issues ⇒ Array<Google::Apis::ManufacturersV1::Issue>
A server-generated list of issues associated with the product.
Corresponds to the JSON property issues
1138 1139 1140 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1138 def issues @issues 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
1148 1149 1150 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1148 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`
1154 1155 1156 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1154 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
1160 1161 1162 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1160 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
1165 1166 1167 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1165 def target_country @target_country end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1172 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) @feed_label = args[:feed_label] if args.key?(:feed_label) @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 |