Class: Google::Apis::CssV1::CssProduct
- Inherits:
-
Object
- Object
- Google::Apis::CssV1::CssProduct
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/css_v1/classes.rb,
lib/google/apis/css_v1/representations.rb,
lib/google/apis/css_v1/representations.rb
Overview
The processed CSS Product(a.k.a Aggregate Offer internally).
Instance Attribute Summary collapse
-
#attributes ⇒ Google::Apis::CssV1::Attributes
Attributes for CSS Product.
-
#content_language ⇒ String
Output only.
-
#css_product_status ⇒ Google::Apis::CssV1::CssProductStatus
The status of the Css Product, data validation issues, that is, information about the Css Product computed asynchronously.
-
#custom_attributes ⇒ Array<Google::Apis::CssV1::CustomAttribute>
Output only.
-
#feed_label ⇒ String
Output only.
-
#name ⇒ String
The name of the CSS Product.
-
#raw_provided_id ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CssProduct
constructor
A new instance of CssProduct.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CssProduct
Returns a new instance of CssProduct.
556 557 558 |
# File 'lib/google/apis/css_v1/classes.rb', line 556 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Google::Apis::CssV1::Attributes
Attributes for CSS Product.
Corresponds to the JSON property attributes
517 518 519 |
# File 'lib/google/apis/css_v1/classes.rb', line 517 def attributes @attributes end |
#content_language ⇒ String
Output only. The two-letter ISO 639-1
language code for the product.
Corresponds to the JSON property contentLanguage
523 524 525 |
# File 'lib/google/apis/css_v1/classes.rb', line 523 def content_language @content_language end |
#css_product_status ⇒ Google::Apis::CssV1::CssProductStatus
The status of the Css Product, data validation issues, that is, information
about the Css Product computed asynchronously.
Corresponds to the JSON property cssProductStatus
529 530 531 |
# File 'lib/google/apis/css_v1/classes.rb', line 529 def css_product_status @css_product_status end |
#custom_attributes ⇒ Array<Google::Apis::CssV1::CustomAttribute>
Output only. A list of custom (CSS-provided) attributes. It can also be used
to submit any attribute of the feed specification in its generic form (for
example, "name": "size type", "value": "regular"
). This is useful for
submitting attributes not explicitly exposed by the API, such as additional
attributes used for Buy on Google.
Corresponds to the JSON property customAttributes
538 539 540 |
# File 'lib/google/apis/css_v1/classes.rb', line 538 def custom_attributes @custom_attributes end |
#feed_label ⇒ String
Output only. The feed label for the product.
Corresponds to the JSON property feedLabel
543 544 545 |
# File 'lib/google/apis/css_v1/classes.rb', line 543 def feed_label @feed_label end |
#name ⇒ String
The name of the CSS Product. Format: "accounts/
account/cssProducts/
css_product"
Corresponds to the JSON property name
549 550 551 |
# File 'lib/google/apis/css_v1/classes.rb', line 549 def name @name end |
#raw_provided_id ⇒ String
Output only. Your unique raw identifier for the product.
Corresponds to the JSON property rawProvidedId
554 555 556 |
# File 'lib/google/apis/css_v1/classes.rb', line 554 def raw_provided_id @raw_provided_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
561 562 563 564 565 566 567 568 569 |
# File 'lib/google/apis/css_v1/classes.rb', line 561 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @content_language = args[:content_language] if args.key?(:content_language) @css_product_status = args[:css_product_status] if args.key?(:css_product_status) @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) @feed_label = args[:feed_label] if args.key?(:feed_label) @name = args[:name] if args.key?(:name) @raw_provided_id = args[:raw_provided_id] if args.key?(:raw_provided_id) end |