Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAddCatalogAttributeRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

Request for CatalogService.AddCatalogAttribute method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaAddCatalogAttributeRequest

Returns a new instance of GoogleCloudRetailV2betaAddCatalogAttributeRequest.



2055
2056
2057
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2055

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#catalog_attributeGoogle::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttribute

Catalog level attribute config for an attribute. For example, if customers want to enable/disable facet for a specific attribute. Corresponds to the JSON property catalogAttribute



2053
2054
2055
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2053

def catalog_attribute
  @catalog_attribute
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2060
2061
2062
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2060

def update!(**args)
  @catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute)
end