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
- 
  
    
      #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. 
- 
  
    
      #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
| 640 641 642 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 640 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
| 566 567 568 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 566 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
| 572 573 574 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 572 def content_language @content_language end | 
#destination_statuses ⇒ Array<Google::Apis::ManufacturersV1::DestinationStatus>
The status of the destinations.
Corresponds to the JSON property destinationStatuses
| 577 578 579 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 577 def destination_statuses @destination_statuses 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
| 583 584 585 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 583 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
| 588 589 590 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 588 def issues @issues end | 
#manually_deleted_attributes ⇒ Array<String>
Names of the attributes of the product deleted manually via the
Manufacturer Center UI.
This field is deprecated and will be removed end of July 2018. Please use
attributes.
Corresponds to the JSON property manuallyDeletedAttributes
| 596 597 598 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 596 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
| 602 603 604 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 602 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
| 614 615 616 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 614 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 propertyparent`
| 620 621 622 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 620 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
| 626 627 628 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 626 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
| 632 633 634 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 632 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
| 638 639 640 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 638 def uploaded_attributes @uploaded_attributes end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 645 646 647 648 649 650 651 652 653 654 655 656 657 658 | # File 'generated/google/apis/manufacturers_v1/classes.rb', line 645 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) @final_attributes = args[:final_attributes] if args.key?(:final_attributes) @issues = args[:issues] if args.key?(:issues) @manually_deleted_attributes = args[:manually_deleted_attributes] if args.key?(:manually_deleted_attributes) @manually_provided_attributes = args[:manually_provided_attributes] if args.key?(:manually_provided_attributes) @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) @uploaded_attributes = args[:uploaded_attributes] if args.key?(:uploaded_attributes) end |