Class: Google::Apis::RetailV2::GoogleCloudRetailV2AddCatalogAttributeRequest
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2::GoogleCloudRetailV2AddCatalogAttributeRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2/classes.rb,
lib/google/apis/retail_v2/representations.rb,
lib/google/apis/retail_v2/representations.rb
Overview
Request for CatalogService.AddCatalogAttribute method.
Instance Attribute Summary collapse
-
#catalog_attribute ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute
Catalog level attribute config for an attribute.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2AddCatalogAttributeRequest
constructor
A new instance of GoogleCloudRetailV2AddCatalogAttributeRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2AddCatalogAttributeRequest
Returns a new instance of GoogleCloudRetailV2AddCatalogAttributeRequest.
292 293 294 |
# File 'lib/google/apis/retail_v2/classes.rb', line 292 def initialize(**args) update!(**args) end |
Instance Attribute Details
#catalog_attribute ⇒ Google::Apis::RetailV2::GoogleCloudRetailV2CatalogAttribute
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
290 291 292 |
# File 'lib/google/apis/retail_v2/classes.rb', line 290 def catalog_attribute @catalog_attribute end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
297 298 299 |
# File 'lib/google/apis/retail_v2/classes.rb', line 297 def update!(**args) @catalog_attribute = args[:catalog_attribute] if args.key?(:catalog_attribute) end |