Class: Google::Apis::CssV1::CssProduct

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#attributesGoogle::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_languageString

Output only. The two-letter ISO 639-1 language code for the product. Corresponds to the JSON property contentLanguage

Returns:

  • (String)


523
524
525
# File 'lib/google/apis/css_v1/classes.rb', line 523

def content_language
  @content_language
end

#css_product_statusGoogle::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_attributesArray<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_labelString

Output only. The feed label for the product. Corresponds to the JSON property feedLabel

Returns:

  • (String)


543
544
545
# File 'lib/google/apis/css_v1/classes.rb', line 543

def feed_label
  @feed_label
end

#nameString

The name of the CSS Product. Format: "accounts/account/cssProducts/ css_product" Corresponds to the JSON property name

Returns:

  • (String)


549
550
551
# File 'lib/google/apis/css_v1/classes.rb', line 549

def name
  @name
end

#raw_provided_idString

Output only. Your unique raw identifier for the product. Corresponds to the JSON property rawProvidedId

Returns:

  • (String)


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